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