Class SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder
- java.lang.Object
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder
-
- Enclosing class:
- SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete
public static class SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(CollectionMetadata metadata, List<KeyPolicyDualAuthDelete> resources)
Instantiates a new builder with required properties.Builder(SetKeyPoliciesOneOf setKeyPoliciesOneOfSetKeyPolicyDualAuthDelete)
Instantiates a new Builder from an existing SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder
addResources(KeyPolicyDualAuthDelete resources)
Adds a new element to resources.SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete
build()
Builds a SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder
metadata(CollectionMetadata metadata)
Set the metadata.SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder
resources(List<KeyPolicyDualAuthDelete> resources)
Set the resources.
-
-
-
Constructor Detail
-
Builder
public Builder(SetKeyPoliciesOneOf setKeyPoliciesOneOfSetKeyPolicyDualAuthDelete)
Instantiates a new Builder from an existing SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete instance.- Parameters:
setKeyPoliciesOneOfSetKeyPolicyDualAuthDelete
- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(CollectionMetadata metadata, List<KeyPolicyDualAuthDelete> resources)
Instantiates a new builder with required properties.- Parameters:
metadata
- the metadataresources
- the resources
-
-
Method Detail
-
build
public SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete build()
Builds a SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.- Returns:
- the new SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete instance
-
addResources
public SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder addResources(KeyPolicyDualAuthDelete resources)
Adds a new element to resources.- Parameters:
resources
- the new element to be added- Returns:
- the SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete builder
-
metadata
public SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder metadata(CollectionMetadata metadata)
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete builder
-
resources
public SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete.Builder resources(List<KeyPolicyDualAuthDelete> resources)
Set the resources. Existing resources will be replaced.- Parameters:
resources
- the resources- Returns:
- the SetKeyPoliciesOneOfSetKeyPolicyDualAuthDelete builder
-
-