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.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder(String publicKey)
      Instantiates a new builder with required properties.
      Parameters:
      publicKey - the publicKey
  • Method Details

    • 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