Class CfnGrantProps.Builder
java.lang.Object
software.amazon.awscdk.services.licensemanager.CfnGrantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGrantProps>
- Enclosing interface:
CfnGrantProps
@Stability(Stable)
public static final class CfnGrantProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGrantProps>
A builder for
CfnGrantProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedOperations(List<String> allowedOperations) Sets the value ofCfnGrantProps.getAllowedOperations()build()Builds the configured instance.Sets the value ofCfnGrantProps.getGrantName()homeRegion(String homeRegion) Sets the value ofCfnGrantProps.getHomeRegion()licenseArn(String licenseArn) Sets the value ofCfnGrantProps.getLicenseArn()principals(List<String> principals) Sets the value ofCfnGrantProps.getPrincipals()Sets the value ofCfnGrantProps.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedOperations
Sets the value ofCfnGrantProps.getAllowedOperations()- Parameters:
allowedOperations- Allowed operations for the grant.- Returns:
this
-
grantName
Sets the value ofCfnGrantProps.getGrantName()- Parameters:
grantName- Grant name.- Returns:
this
-
homeRegion
Sets the value ofCfnGrantProps.getHomeRegion()- Parameters:
homeRegion- Home Region of the grant.- Returns:
this
-
licenseArn
Sets the value ofCfnGrantProps.getLicenseArn()- Parameters:
licenseArn- License ARN.- Returns:
this
-
principals
Sets the value ofCfnGrantProps.getPrincipals()- Parameters:
principals- The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):.- An AWS account, which includes only the account specified.
- An organizational unit (OU), which includes all accounts in the OU.
- An organization, which will include all accounts across your organization.
- Returns:
this
-
status
Sets the value ofCfnGrantProps.getStatus()- Parameters:
status- Granted license status.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGrantProps>- Returns:
- a new instance of
CfnGrantProps - Throws:
NullPointerException- if any required attribute was not provided
-