Class AccessGrantReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.s3.AccessGrantReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessGrantReference>
- Enclosing interface:
AccessGrantReference
@Stability(Stable)
public static final class AccessGrantReference.Builder
extends Object
implements software.amazon.jsii.Builder<AccessGrantReference>
A builder for
AccessGrantReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessGrantArn(String accessGrantArn) Sets the value ofAccessGrantReference.getAccessGrantArn()accessGrantId(String accessGrantId) Sets the value ofAccessGrantReference.getAccessGrantId()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessGrantArn
Sets the value ofAccessGrantReference.getAccessGrantArn()- Parameters:
accessGrantArn- The ARN of the AccessGrant resource. This parameter is required.- Returns:
this
-
accessGrantId
Sets the value ofAccessGrantReference.getAccessGrantId()- Parameters:
accessGrantId- The AccessGrantId of the AccessGrant resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessGrantReference>- Returns:
- a new instance of
AccessGrantReference - Throws:
NullPointerException- if any required attribute was not provided
-