Class CfnCrossAccountAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrossAccountAttachmentProps>
- Enclosing interface:
CfnCrossAccountAttachmentProps
@Stability(Stable)
public static final class CfnCrossAccountAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrossAccountAttachmentProps>
A builder for
CfnCrossAccountAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCrossAccountAttachmentProps.getName()
principals
(List<String> principals) Sets the value ofCfnCrossAccountAttachmentProps.getPrincipals()
Sets the value ofCfnCrossAccountAttachmentProps.getResources()
resources
(IResolvable resources) Sets the value ofCfnCrossAccountAttachmentProps.getResources()
Sets the value ofCfnCrossAccountAttachmentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCrossAccountAttachmentProps.getName()
- Parameters:
name
- The name of the cross-account attachment. This parameter is required.- Returns:
this
-
principals
@Stability(Stable) public CfnCrossAccountAttachmentProps.Builder principals(List<String> principals) Sets the value ofCfnCrossAccountAttachmentProps.getPrincipals()
- Parameters:
principals
- The principals included in the cross-account attachment.- Returns:
this
-
resources
Sets the value ofCfnCrossAccountAttachmentProps.getResources()
- Parameters:
resources
- The resources included in the cross-account attachment.- Returns:
this
-
resources
@Stability(Stable) public CfnCrossAccountAttachmentProps.Builder resources(List<? extends Object> resources) Sets the value ofCfnCrossAccountAttachmentProps.getResources()
- Parameters:
resources
- The resources included in the cross-account attachment.- Returns:
this
-
tags
Sets the value ofCfnCrossAccountAttachmentProps.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnCrossAccountAttachmentProps>
- Returns:
- a new instance of
CfnCrossAccountAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-