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