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