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