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