Package com.ibm.cloud.is.vpc.v1.model
Class CreateKeyOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.CreateKeyOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateKeyOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe createKey options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateKeyOptions.BuilderBuilder.static interfaceCreateKeyOptions.TypeThe crypto-system used by this key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Gets the name.CreateKeyOptions.BuildernewBuilder()New builder.StringpublicKey()Gets the publicKey.ResourceGroupIdentityresourceGroup()Gets the resourceGroup.Stringtype()Gets the type.
-
-
-
Method Detail
-
newBuilder
public CreateKeyOptions.Builder newBuilder()
New builder.- Returns:
- a CreateKeyOptions builder
-
publicKey
public String publicKey()
Gets the publicKey. A unique public SSH key to import, in OpenSSH format (consisting of three space-separated fields: the algorithm name, base64-encoded key, and a comment). The algorithm and comment fields may be omitted, as only the key field is imported. Keys of type `rsa` may be 2048 or 4096 bits in length, however 4096 is recommended. Keys of type `ed25519` are 256 bits in length.- Returns:
- the publicKey
-
name
public String name()
Gets the name. The name for this key. The name must not be used by another key in the region. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-
resourceGroup
public ResourceGroupIdentity resourceGroup()
Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.- Returns:
- the resourceGroup
-
type
public String type()
Gets the type. The crypto-system used by this key.- Returns:
- the type
-
-