Class PolicyGrantReference.Builder
java.lang.Object
software.amazon.awscdk.services.datazone.PolicyGrantReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyGrantReference>
- Enclosing interface:
PolicyGrantReference
@Stability(Stable)
public static final class PolicyGrantReference.Builder
extends Object
implements software.amazon.jsii.Builder<PolicyGrantReference>
A builder for
PolicyGrantReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainIdentifier
(String domainIdentifier) Sets the value ofPolicyGrantReference.getDomainIdentifier()
entityIdentifier
(String entityIdentifier) Sets the value ofPolicyGrantReference.getEntityIdentifier()
entityType
(String entityType) Sets the value ofPolicyGrantReference.getEntityType()
Sets the value ofPolicyGrantReference.getGrantId()
policyType
(String policyType) Sets the value ofPolicyGrantReference.getPolicyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainIdentifier
Sets the value ofPolicyGrantReference.getDomainIdentifier()
- Parameters:
domainIdentifier
- The DomainIdentifier of the PolicyGrant resource. This parameter is required.- Returns:
this
-
entityIdentifier
Sets the value ofPolicyGrantReference.getEntityIdentifier()
- Parameters:
entityIdentifier
- The EntityIdentifier of the PolicyGrant resource. This parameter is required.- Returns:
this
-
entityType
Sets the value ofPolicyGrantReference.getEntityType()
- Parameters:
entityType
- The EntityType of the PolicyGrant resource. This parameter is required.- Returns:
this
-
grantId
Sets the value ofPolicyGrantReference.getGrantId()
- Parameters:
grantId
- The GrantId of the PolicyGrant resource. This parameter is required.- Returns:
this
-
policyType
Sets the value ofPolicyGrantReference.getPolicyType()
- Parameters:
policyType
- The PolicyType of the PolicyGrant resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PolicyGrantReference>
- Returns:
- a new instance of
PolicyGrantReference
- Throws:
NullPointerException
- if any required attribute was not provided
-