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