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