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