Class CfnCrossAccountAttachmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.globalaccelerator.CfnCrossAccountAttachmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrossAccountAttachmentMixinProps>
- Enclosing interface:
CfnCrossAccountAttachmentMixinProps
@Stability(Stable)
public static final class CfnCrossAccountAttachmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrossAccountAttachmentMixinProps>
A builder for
CfnCrossAccountAttachmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCrossAccountAttachmentMixinProps.getName()principals(List<String> principals) Sets the value ofCfnCrossAccountAttachmentMixinProps.getPrincipals()Sets the value ofCfnCrossAccountAttachmentMixinProps.getResources()resources(IResolvable resources) Sets the value ofCfnCrossAccountAttachmentMixinProps.getResources()Sets the value ofCfnCrossAccountAttachmentMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCrossAccountAttachmentMixinProps.getName()- Parameters:
name- The name of the cross-account attachment.- Returns:
this
-
principals
@Stability(Stable) public CfnCrossAccountAttachmentMixinProps.Builder principals(List<String> principals) Sets the value ofCfnCrossAccountAttachmentMixinProps.getPrincipals()- Parameters:
principals- The principals included in the cross-account attachment.- Returns:
this
-
resources
@Stability(Stable) public CfnCrossAccountAttachmentMixinProps.Builder resources(IResolvable resources) Sets the value ofCfnCrossAccountAttachmentMixinProps.getResources()- Parameters:
resources- The resources included in the cross-account attachment.- Returns:
this
-
resources
@Stability(Stable) public CfnCrossAccountAttachmentMixinProps.Builder resources(List<? extends Object> resources) Sets the value ofCfnCrossAccountAttachmentMixinProps.getResources()- Parameters:
resources- The resources included in the cross-account attachment.- Returns:
this
-
tags
@Stability(Stable) public CfnCrossAccountAttachmentMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnCrossAccountAttachmentMixinProps.getTags()- Parameters:
tags- Add tags for a cross-account attachment. For more information, see Tagging in AWS Global Accelerator in the AWS Global Accelerator Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCrossAccountAttachmentMixinProps>- Returns:
- a new instance of
CfnCrossAccountAttachmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-