Class VpcEndpointServiceProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpcEndpointServiceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcEndpointServiceProps>
- Enclosing interface:
VpcEndpointServiceProps
@Stability(Stable)
public static final class VpcEndpointServiceProps.Builder
extends Object
implements software.amazon.jsii.Builder<VpcEndpointServiceProps>
A builder for
VpcEndpointServiceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptanceRequired(Boolean acceptanceRequired) Sets the value ofVpcEndpointServiceProps.getAcceptanceRequired()allowedPrincipals(List<? extends ArnPrincipal> allowedPrincipals) Sets the value ofVpcEndpointServiceProps.getAllowedPrincipals()allowedRegions(List<String> allowedRegions) Sets the value ofVpcEndpointServiceProps.getAllowedRegions()build()Builds the configured instance.contributorInsights(Boolean contributorInsights) Sets the value ofVpcEndpointServiceProps.getContributorInsights()supportedIpAddressTypes(List<? extends IpAddressType> supportedIpAddressTypes) Sets the value ofVpcEndpointServiceProps.getSupportedIpAddressTypes()vpcEndpointServiceLoadBalancers(List<? extends IVpcEndpointServiceLoadBalancer> vpcEndpointServiceLoadBalancers) Sets the value ofVpcEndpointServiceProps.getVpcEndpointServiceLoadBalancers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpcEndpointServiceLoadBalancers
@Stability(Stable) public VpcEndpointServiceProps.Builder vpcEndpointServiceLoadBalancers(List<? extends IVpcEndpointServiceLoadBalancer> vpcEndpointServiceLoadBalancers) Sets the value ofVpcEndpointServiceProps.getVpcEndpointServiceLoadBalancers()- Parameters:
vpcEndpointServiceLoadBalancers- One or more load balancers to host the VPC Endpoint Service. This parameter is required.- Returns:
this
-
acceptanceRequired
@Stability(Stable) public VpcEndpointServiceProps.Builder acceptanceRequired(Boolean acceptanceRequired) Sets the value ofVpcEndpointServiceProps.getAcceptanceRequired()- Parameters:
acceptanceRequired- Whether requests from service consumers to connect to the service through an endpoint must be accepted.- Returns:
this
-
allowedPrincipals
@Stability(Stable) public VpcEndpointServiceProps.Builder allowedPrincipals(List<? extends ArnPrincipal> allowedPrincipals) Sets the value ofVpcEndpointServiceProps.getAllowedPrincipals()- Parameters:
allowedPrincipals- IAM users, IAM roles, or AWS accounts to allow inbound connections from. These principals can connect to your service using VPC endpoints. Takes a list of one or more ArnPrincipal.- Returns:
this
-
allowedRegions
@Stability(Stable) public VpcEndpointServiceProps.Builder allowedRegions(List<String> allowedRegions) Sets the value ofVpcEndpointServiceProps.getAllowedRegions()- Parameters:
allowedRegions- The Regions from which service consumers can access the service.- Returns:
this
-
contributorInsights
@Stability(Stable) public VpcEndpointServiceProps.Builder contributorInsights(Boolean contributorInsights) Sets the value ofVpcEndpointServiceProps.getContributorInsights()- Parameters:
contributorInsights- Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink.- Returns:
this
-
supportedIpAddressTypes
@Stability(Stable) public VpcEndpointServiceProps.Builder supportedIpAddressTypes(List<? extends IpAddressType> supportedIpAddressTypes) Sets the value ofVpcEndpointServiceProps.getSupportedIpAddressTypes()- Parameters:
supportedIpAddressTypes- Specify which IP address types are supported for VPC endpoint service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcEndpointServiceProps>- Returns:
- a new instance of
VpcEndpointServiceProps - Throws:
NullPointerException- if any required attribute was not provided
-