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