Class PutPolicyOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.PutPolicyOptions.Builder
-
- Enclosing class:
- PutPolicyOptions
public static class PutPolicyOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String id, String bluemixInstance, SetKeyPoliciesOneOf keyPolicyPutBody)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutPolicyOptions.Builder
bluemixInstance(String bluemixInstance)
Set the bluemixInstance.PutPolicyOptions
build()
Builds a PutPolicyOptions.PutPolicyOptions.Builder
correlationId(String correlationId)
Set the correlationId.PutPolicyOptions.Builder
id(String id)
Set the id.PutPolicyOptions.Builder
keyPolicyPutBody(SetKeyPoliciesOneOf keyPolicyPutBody)
Set the keyPolicyPutBody.PutPolicyOptions.Builder
policy(String policy)
Set the policy.PutPolicyOptions.Builder
xKmsKeyRing(String xKmsKeyRing)
Set the xKmsKeyRing.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String id, String bluemixInstance, SetKeyPoliciesOneOf keyPolicyPutBody)
Instantiates a new builder with required properties.- Parameters:
id
- the idbluemixInstance
- the bluemixInstancekeyPolicyPutBody
- the keyPolicyPutBody
-
-
Method Detail
-
build
public PutPolicyOptions build()
Builds a PutPolicyOptions.- Returns:
- the new PutPolicyOptions instance
-
id
public PutPolicyOptions.Builder id(String id)
Set the id.- Parameters:
id
- the id- Returns:
- the PutPolicyOptions builder
-
bluemixInstance
public PutPolicyOptions.Builder bluemixInstance(String bluemixInstance)
Set the bluemixInstance.- Parameters:
bluemixInstance
- the bluemixInstance- Returns:
- the PutPolicyOptions builder
-
keyPolicyPutBody
public PutPolicyOptions.Builder keyPolicyPutBody(SetKeyPoliciesOneOf keyPolicyPutBody)
Set the keyPolicyPutBody.- Parameters:
keyPolicyPutBody
- the keyPolicyPutBody- Returns:
- the PutPolicyOptions builder
-
correlationId
public PutPolicyOptions.Builder correlationId(String correlationId)
Set the correlationId.- Parameters:
correlationId
- the correlationId- Returns:
- the PutPolicyOptions builder
-
xKmsKeyRing
public PutPolicyOptions.Builder xKmsKeyRing(String xKmsKeyRing)
Set the xKmsKeyRing.- Parameters:
xKmsKeyRing
- the xKmsKeyRing- Returns:
- the PutPolicyOptions builder
-
policy
public PutPolicyOptions.Builder policy(String policy)
Set the policy.- Parameters:
policy
- the policy- Returns:
- the PutPolicyOptions builder
-
-