Class ShareOptions.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalogappregistry.alpha.ShareOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ShareOptions>
- Enclosing interface:
ShareOptions
@Stability(Experimental)
public static final class ShareOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ShareOptions>
A builder for
ShareOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofShareOptions.getAccounts()build()Builds the configured instance.Sets the value ofShareOptions.getName()organizationArns(List<String> organizationArns) Sets the value ofShareOptions.getOrganizationArns()Sets the value ofShareOptions.getRoles()sharePermission(String sharePermission) Sets the value ofShareOptions.getSharePermission()sharePermission(SharePermission sharePermission) Sets the value ofShareOptions.getSharePermission()Sets the value ofShareOptions.getUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofShareOptions.getName()- Parameters:
name- Name of the share. This parameter is required.- Returns:
this
-
accounts
Sets the value ofShareOptions.getAccounts()- Parameters:
accounts- A list of AWS accounts that the application will be shared with.- Returns:
this
-
organizationArns
@Stability(Experimental) public ShareOptions.Builder organizationArns(List<String> organizationArns) Sets the value ofShareOptions.getOrganizationArns()- Parameters:
organizationArns- A list of AWS Organization or Organizational Units (OUs) ARNs that the application will be shared with.- Returns:
this
-
roles
Sets the value ofShareOptions.getRoles()- Parameters:
roles- A list of AWS IAM roles that the application will be shared with.- Returns:
this
-
users
Sets the value ofShareOptions.getUsers()- Parameters:
users- A list of AWS IAM users that the application will be shared with.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ShareOptions>- Returns:
- a new instance of
ShareOptions - Throws:
NullPointerException- if any required attribute was not provided
-