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