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.Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getCidr()
endpointId
(String endpointId) Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getEndpointId()
Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
Sets the value ofCfnCrossAccountAttachment.ResourceProperty.getCidr()
- Parameters:
cidr
- An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in AWS Global Accelerator by following the bring your own IP address (BYOIP) process for Global AcceleratorFor more information, see Bring your own IP addresses (BYOIP) in the AWS Global Accelerator Developer Guide.
- Returns:
this
-
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. 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
-