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()build()Builds the configured instance.contributorInsights(Boolean contributorInsights) Sets the value ofVpcEndpointServiceProps.getContributorInsights()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
-
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
-
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
-