Class CfnEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3outposts.CfnEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointProps>
- Enclosing interface:
- CfnEndpointProps
@Stability(Stable)
public static final class CfnEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointProps>
A builder for
CfnEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessType(String accessType) Sets the value ofCfnEndpointProps.getAccessType()build()Builds the configured instance.customerOwnedIpv4Pool(String customerOwnedIpv4Pool) Sets the value ofCfnEndpointProps.getCustomerOwnedIpv4Pool()Sets the value ofCfnEndpointProps.getOutpostId()securityGroupId(String securityGroupId) Sets the value ofCfnEndpointProps.getSecurityGroupId()Sets the value ofCfnEndpointProps.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
outpostId
Sets the value ofCfnEndpointProps.getOutpostId()- Parameters:
outpostId- The ID of the Outpost. This parameter is required.- Returns:
this
-
securityGroupId
Sets the value ofCfnEndpointProps.getSecurityGroupId()- Parameters:
securityGroupId- The ID of the security group to use with the endpoint. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofCfnEndpointProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet. This parameter is required.- Returns:
this
-
accessType
Sets the value ofCfnEndpointProps.getAccessType()- Parameters:
accessType- The container for the type of connectivity used to access the Amazon S3 on Outposts endpoint. To use the Amazon VPC , choosePrivate. To use the endpoint with an on-premises network, chooseCustomerOwnedIp. If you chooseCustomerOwnedIp, you must also provide the customer-owned IP address pool (CoIP pool).Privateis the default access type value.- Returns:
this
-
customerOwnedIpv4Pool
@Stability(Stable) public CfnEndpointProps.Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) Sets the value ofCfnEndpointProps.getCustomerOwnedIpv4Pool()- Parameters:
customerOwnedIpv4Pool- The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this pool for the endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointProps>- Returns:
- a new instance of
CfnEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-