Class CfnGrantMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.licensemanager.CfnGrantMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGrantMixinProps>
- Enclosing interface:
CfnGrantMixinProps
@Stability(Stable)
public static final class CfnGrantMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGrantMixinProps>
A builder for
CfnGrantMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedOperations(List<String> allowedOperations) Sets the value ofCfnGrantMixinProps.getAllowedOperations()build()Builds the configured instance.Sets the value ofCfnGrantMixinProps.getGrantName()homeRegion(String homeRegion) Sets the value ofCfnGrantMixinProps.getHomeRegion()licenseArn(String licenseArn) Sets the value ofCfnGrantMixinProps.getLicenseArn()principals(List<String> principals) Sets the value ofCfnGrantMixinProps.getPrincipals()Sets the value ofCfnGrantMixinProps.getStatus()Sets the value ofCfnGrantMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedOperations
@Stability(Stable) public CfnGrantMixinProps.Builder allowedOperations(List<String> allowedOperations) Sets the value ofCfnGrantMixinProps.getAllowedOperations()- Parameters:
allowedOperations- Allowed operations for the grant.- Returns:
this
-
grantName
Sets the value ofCfnGrantMixinProps.getGrantName()- Parameters:
grantName- Grant name.- Returns:
this
-
homeRegion
Sets the value ofCfnGrantMixinProps.getHomeRegion()- Parameters:
homeRegion- Home Region of the grant.- Returns:
this
-
licenseArn
Sets the value ofCfnGrantMixinProps.getLicenseArn()- Parameters:
licenseArn- License ARN.- Returns:
this
-
principals
Sets the value ofCfnGrantMixinProps.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 ofCfnGrantMixinProps.getStatus()- Parameters:
status- Granted license status.- Returns:
this
-
tags
Sets the value ofCfnGrantMixinProps.getTags()- Parameters:
tags- A list of tags to attach.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGrantMixinProps>- Returns:
- a new instance of
CfnGrantMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-