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
-
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()
failedReason
(IResolvable failedReason) Sets the value ofCfnEndpointProps.getFailedReason()
failedReason
(CfnEndpoint.FailedReasonProperty failedReason) Sets the value ofCfnEndpointProps.getFailedReason()
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 used for the endpoint. This parameter is required.- Returns:
this
-
subnetId
Sets the value ofCfnEndpointProps.getSubnetId()
- Parameters:
subnetId
- The ID of the subnet used for the endpoint. 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).Private
is 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
-
failedReason
Sets the value ofCfnEndpointProps.getFailedReason()
- Parameters:
failedReason
- The failure reason, if any, for a create or delete endpoint operation.- Returns:
this
-
failedReason
@Stability(Stable) public CfnEndpointProps.Builder failedReason(CfnEndpoint.FailedReasonProperty failedReason) Sets the value ofCfnEndpointProps.getFailedReason()
- Parameters:
failedReason
- The failure reason, if any, for a create or delete endpoint operation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointProps>
- Returns:
- a new instance of
CfnEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-