Package com.ibm.cloud.is.vpc.v1.model
Class CreateKeyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateKeyOptions.Builder
-
- Enclosing class:
- CreateKeyOptions
public static class CreateKeyOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateKeyOptionsbuild()Builds a CreateKeyOptions.CreateKeyOptions.Buildername(String name)Set the name.CreateKeyOptions.BuilderpublicKey(String publicKey)Set the publicKey.CreateKeyOptions.BuilderresourceGroup(ResourceGroupIdentity resourceGroup)Set the resourceGroup.CreateKeyOptions.Buildertype(String type)Set the type.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String publicKey)
Instantiates a new builder with required properties.- Parameters:
publicKey- the publicKey
-
-
Method Detail
-
build
public CreateKeyOptions build()
Builds a CreateKeyOptions.- Returns:
- the new CreateKeyOptions instance
-
publicKey
public CreateKeyOptions.Builder publicKey(String publicKey)
Set the publicKey.- Parameters:
publicKey- the publicKey- Returns:
- the CreateKeyOptions builder
-
name
public CreateKeyOptions.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the CreateKeyOptions builder
-
resourceGroup
public CreateKeyOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup- the resourceGroup- Returns:
- the CreateKeyOptions builder
-
type
public CreateKeyOptions.Builder type(String type)
Set the type.- Parameters:
type- the type- Returns:
- the CreateKeyOptions builder
-
-