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 CreateKeyOptions
build()
Builds a CreateKeyOptions.CreateKeyOptions.Builder
name(String name)
Set the name.CreateKeyOptions.Builder
publicKey(String publicKey)
Set the publicKey.CreateKeyOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreateKeyOptions.Builder
type(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
-
-