Class CreateKeyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.CreateKeyOptions.Builder
-
- Enclosing class:
- CreateKeyOptions
public static class CreateKeyOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String bluemixInstance, InputStream keyCreateBody)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateKeyOptions.Builder
bluemixInstance(String bluemixInstance)
Set the bluemixInstance.CreateKeyOptions
build()
Builds a CreateKeyOptions.CreateKeyOptions.Builder
correlationId(String correlationId)
Set the correlationId.CreateKeyOptions.Builder
keyCreateBody(File keyCreateBody)
Set the keyCreateBody.CreateKeyOptions.Builder
keyCreateBody(InputStream keyCreateBody)
Set the keyCreateBody.CreateKeyOptions.Builder
prefer(String prefer)
Set the prefer.CreateKeyOptions.Builder
xKmsKeyRing(String xKmsKeyRing)
Set the xKmsKeyRing.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String bluemixInstance, InputStream keyCreateBody)
Instantiates a new builder with required properties.- Parameters:
bluemixInstance
- the bluemixInstancekeyCreateBody
- the keyCreateBody
-
-
Method Detail
-
build
public CreateKeyOptions build()
Builds a CreateKeyOptions.- Returns:
- the new CreateKeyOptions instance
-
bluemixInstance
public CreateKeyOptions.Builder bluemixInstance(String bluemixInstance)
Set the bluemixInstance.- Parameters:
bluemixInstance
- the bluemixInstance- Returns:
- the CreateKeyOptions builder
-
keyCreateBody
public CreateKeyOptions.Builder keyCreateBody(InputStream keyCreateBody)
Set the keyCreateBody.- Parameters:
keyCreateBody
- the keyCreateBody- Returns:
- the CreateKeyOptions builder
-
correlationId
public CreateKeyOptions.Builder correlationId(String correlationId)
Set the correlationId.- Parameters:
correlationId
- the correlationId- Returns:
- the CreateKeyOptions builder
-
prefer
public CreateKeyOptions.Builder prefer(String prefer)
Set the prefer.- Parameters:
prefer
- the prefer- Returns:
- the CreateKeyOptions builder
-
xKmsKeyRing
public CreateKeyOptions.Builder xKmsKeyRing(String xKmsKeyRing)
Set the xKmsKeyRing.- Parameters:
xKmsKeyRing
- the xKmsKeyRing- Returns:
- the CreateKeyOptions builder
-
keyCreateBody
public CreateKeyOptions.Builder keyCreateBody(File keyCreateBody) throws FileNotFoundException
Set the keyCreateBody.- Parameters:
keyCreateBody
- the keyCreateBody- Returns:
- the CreateKeyOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-
-