Class CfnVPCEndpointServiceProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCEndpointServiceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointServiceProps>
- Enclosing interface:
CfnVPCEndpointServiceProps
@Stability(Stable)
public static final class CfnVPCEndpointServiceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEndpointServiceProps>
A builder for
CfnVPCEndpointServiceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacceptanceRequired
(Boolean acceptanceRequired) Sets the value ofCfnVPCEndpointServiceProps.getAcceptanceRequired()
acceptanceRequired
(IResolvable acceptanceRequired) Sets the value ofCfnVPCEndpointServiceProps.getAcceptanceRequired()
build()
Builds the configured instance.contributorInsightsEnabled
(Boolean contributorInsightsEnabled) Sets the value ofCfnVPCEndpointServiceProps.getContributorInsightsEnabled()
contributorInsightsEnabled
(IResolvable contributorInsightsEnabled) Sets the value ofCfnVPCEndpointServiceProps.getContributorInsightsEnabled()
gatewayLoadBalancerArns
(List<String> gatewayLoadBalancerArns) Sets the value ofCfnVPCEndpointServiceProps.getGatewayLoadBalancerArns()
networkLoadBalancerArns
(List<String> networkLoadBalancerArns) Sets the value ofCfnVPCEndpointServiceProps.getNetworkLoadBalancerArns()
payerResponsibility
(String payerResponsibility) Sets the value ofCfnVPCEndpointServiceProps.getPayerResponsibility()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceptanceRequired
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder acceptanceRequired(Boolean acceptanceRequired) Sets the value ofCfnVPCEndpointServiceProps.getAcceptanceRequired()
- Parameters:
acceptanceRequired
- Indicates whether requests from service consumers to create an endpoint to your service must be accepted.- Returns:
this
-
acceptanceRequired
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder acceptanceRequired(IResolvable acceptanceRequired) Sets the value ofCfnVPCEndpointServiceProps.getAcceptanceRequired()
- Parameters:
acceptanceRequired
- Indicates whether requests from service consumers to create an endpoint to your service must be accepted.- Returns:
this
-
contributorInsightsEnabled
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder contributorInsightsEnabled(Boolean contributorInsightsEnabled) Sets the value ofCfnVPCEndpointServiceProps.getContributorInsightsEnabled()
- Parameters:
contributorInsightsEnabled
- Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink .- Returns:
this
-
contributorInsightsEnabled
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder contributorInsightsEnabled(IResolvable contributorInsightsEnabled) Sets the value ofCfnVPCEndpointServiceProps.getContributorInsightsEnabled()
- Parameters:
contributorInsightsEnabled
- Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink .- Returns:
this
-
gatewayLoadBalancerArns
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder gatewayLoadBalancerArns(List<String> gatewayLoadBalancerArns) Sets the value ofCfnVPCEndpointServiceProps.getGatewayLoadBalancerArns()
- Parameters:
gatewayLoadBalancerArns
- The Amazon Resource Names (ARNs) of the Gateway Load Balancers.- Returns:
this
-
networkLoadBalancerArns
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder networkLoadBalancerArns(List<String> networkLoadBalancerArns) Sets the value ofCfnVPCEndpointServiceProps.getNetworkLoadBalancerArns()
- Parameters:
networkLoadBalancerArns
- The Amazon Resource Names (ARNs) of the Network Load Balancers.- Returns:
this
-
payerResponsibility
@Stability(Stable) public CfnVPCEndpointServiceProps.Builder payerResponsibility(String payerResponsibility) Sets the value ofCfnVPCEndpointServiceProps.getPayerResponsibility()
- Parameters:
payerResponsibility
- The entity that is responsible for the endpoint costs. The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointServiceProps>
- Returns:
- a new instance of
CfnVPCEndpointServiceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-