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