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