Class CfnVPCEndpointServicePermissionsMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCEndpointServicePermissionsMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointServicePermissionsMixinProps>
- Enclosing interface:
CfnVPCEndpointServicePermissionsMixinProps
@Stability(Stable)
public static final class CfnVPCEndpointServicePermissionsMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEndpointServicePermissionsMixinProps>
A builder for
CfnVPCEndpointServicePermissionsMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedPrincipals(List<String> allowedPrincipals) Sets the value ofCfnVPCEndpointServicePermissionsMixinProps.getAllowedPrincipals()build()Builds the configured instance.Sets the value ofCfnVPCEndpointServicePermissionsMixinProps.getServiceId()serviceId(IVPCEndpointServiceRef serviceId) Sets the value ofCfnVPCEndpointServicePermissionsMixinProps.getServiceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedPrincipals
@Stability(Stable) public CfnVPCEndpointServicePermissionsMixinProps.Builder allowedPrincipals(List<String> allowedPrincipals) Sets the value ofCfnVPCEndpointServicePermissionsMixinProps.getAllowedPrincipals()- Parameters:
allowedPrincipals- The Amazon Resource Names (ARN) of one or more principals (for example, users, IAM roles, and AWS accounts ). Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*). Permissions are revoked for principals not in this list. If the list is empty, then all permissions are revoked.- Returns:
this
-
serviceId
@Stability(Stable) public CfnVPCEndpointServicePermissionsMixinProps.Builder serviceId(String serviceId) Sets the value ofCfnVPCEndpointServicePermissionsMixinProps.getServiceId()- Parameters:
serviceId- The ID of the service.- Returns:
this
-
serviceId
@Stability(Stable) public CfnVPCEndpointServicePermissionsMixinProps.Builder serviceId(IVPCEndpointServiceRef serviceId) Sets the value ofCfnVPCEndpointServicePermissionsMixinProps.getServiceId()- Parameters:
serviceId- The ID of the service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointServicePermissionsMixinProps>- Returns:
- a new instance of
CfnVPCEndpointServicePermissionsMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-