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