Class CfnCrossAccountAttachment.ResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachment.ResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrossAccountAttachment.ResourceProperty>
- Enclosing interface:
CfnCrossAccountAttachment.ResourceProperty
@Stability(Stable)
public static final class CfnCrossAccountAttachment.ResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrossAccountAttachment.ResourceProperty>
A builder for
CfnCrossAccountAttachment.ResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.endpointId
(String endpointId) Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getEndpointId()
Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointId
@Stability(Stable) public CfnCrossAccountAttachment.ResourceProperty.Builder endpointId(String endpointId) Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getEndpointId()
- Parameters:
endpointId
- The endpoint ID for the endpoint that is specified as a AWS resource. This parameter is required. An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.- Returns:
this
-
region
Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getRegion()
- Parameters:
region
- The AWS Region where a shared endpoint resource is located.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCrossAccountAttachment.ResourceProperty>
- Returns:
- a new instance of
CfnCrossAccountAttachment.ResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-