Class CfnResourceConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnResourceConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceConfigurationProps>
- Enclosing interface:
CfnResourceConfigurationProps
@Stability(Stable)
public static final class CfnResourceConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceConfigurationProps>
A builder for
CfnResourceConfigurationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowAssociationToSharableServiceNetwork
(Boolean allowAssociationToSharableServiceNetwork) allowAssociationToSharableServiceNetwork
(IResolvable allowAssociationToSharableServiceNetwork) build()
Builds the configured instance.Sets the value ofCfnResourceConfigurationProps.getName()
portRanges
(List<String> portRanges) Sets the value ofCfnResourceConfigurationProps.getPortRanges()
protocolType
(String protocolType) Sets the value ofCfnResourceConfigurationProps.getProtocolType()
resourceConfigurationAuthType
(String resourceConfigurationAuthType) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationAuthType()
resourceConfigurationDefinition
(IResolvable resourceConfigurationDefinition) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationDefinition()
resourceConfigurationDefinition
(CfnResourceConfiguration.ResourceConfigurationDefinitionProperty resourceConfigurationDefinition) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationDefinition()
resourceConfigurationGroupId
(String resourceConfigurationGroupId) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationGroupId()
resourceConfigurationType
(String resourceConfigurationType) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationType()
resourceGatewayId
(String resourceGatewayId) Sets the value ofCfnResourceConfigurationProps.getResourceGatewayId()
Sets the value ofCfnResourceConfigurationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnResourceConfigurationProps.getName()
- Parameters:
name
- The name of the resource configuration. This parameter is required.- Returns:
this
-
resourceConfigurationType
@Stability(Stable) public CfnResourceConfigurationProps.Builder resourceConfigurationType(String resourceConfigurationType) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationType()
- Parameters:
resourceConfigurationType
- The type of resource configuration. A resource configuration can be one of the following types:. This parameter is required.- SINGLE - A single resource.
- GROUP - A group of resources. You must create a group resource configuration before you create a child resource configuration.
- CHILD - A single resource that is part of a group resource configuration.
- ARN - An AWS resource.
- Returns:
this
-
allowAssociationToSharableServiceNetwork
@Stability(Stable) public CfnResourceConfigurationProps.Builder allowAssociationToSharableServiceNetwork(Boolean allowAssociationToSharableServiceNetwork) - Parameters:
allowAssociationToSharableServiceNetwork
- Specifies whether the resource configuration can be associated with a sharable service network.- Returns:
this
-
allowAssociationToSharableServiceNetwork
@Stability(Stable) public CfnResourceConfigurationProps.Builder allowAssociationToSharableServiceNetwork(IResolvable allowAssociationToSharableServiceNetwork) - Parameters:
allowAssociationToSharableServiceNetwork
- Specifies whether the resource configuration can be associated with a sharable service network.- Returns:
this
-
portRanges
Sets the value ofCfnResourceConfigurationProps.getPortRanges()
- Parameters:
portRanges
- (SINGLE, GROUP, CHILD) The TCP port ranges that a consumer can use to access a resource configuration (for example: 1-65535). You can separate port ranges using commas (for example: 1,2,22-30).- Returns:
this
-
protocolType
Sets the value ofCfnResourceConfigurationProps.getProtocolType()
- Parameters:
protocolType
- (SINGLE, GROUP) The protocol accepted by the resource configuration.- Returns:
this
-
resourceConfigurationAuthType
@Stability(Stable) public CfnResourceConfigurationProps.Builder resourceConfigurationAuthType(String resourceConfigurationAuthType) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationAuthType()
- Parameters:
resourceConfigurationAuthType
- The auth type for the resource configuration.- Returns:
this
-
resourceConfigurationDefinition
@Stability(Stable) public CfnResourceConfigurationProps.Builder resourceConfigurationDefinition(IResolvable resourceConfigurationDefinition) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationDefinition()
- Parameters:
resourceConfigurationDefinition
- Identifies the resource configuration in one of the following ways:.- Amazon Resource Name (ARN) - Supported resource-types that are provisioned by AWS services, such as RDS databases, can be identified by their ARN.
- Domain name - Any domain name that is publicly resolvable.
- IP address - For IPv4 and IPv6, only IP addresses in the VPC are supported.
- Returns:
this
-
resourceConfigurationDefinition
@Stability(Stable) public CfnResourceConfigurationProps.Builder resourceConfigurationDefinition(CfnResourceConfiguration.ResourceConfigurationDefinitionProperty resourceConfigurationDefinition) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationDefinition()
- Parameters:
resourceConfigurationDefinition
- Identifies the resource configuration in one of the following ways:.- Amazon Resource Name (ARN) - Supported resource-types that are provisioned by AWS services, such as RDS databases, can be identified by their ARN.
- Domain name - Any domain name that is publicly resolvable.
- IP address - For IPv4 and IPv6, only IP addresses in the VPC are supported.
- Returns:
this
-
resourceConfigurationGroupId
@Stability(Stable) public CfnResourceConfigurationProps.Builder resourceConfigurationGroupId(String resourceConfigurationGroupId) Sets the value ofCfnResourceConfigurationProps.getResourceConfigurationGroupId()
- Parameters:
resourceConfigurationGroupId
- The ID of the group resource configuration.- Returns:
this
-
resourceGatewayId
@Stability(Stable) public CfnResourceConfigurationProps.Builder resourceGatewayId(String resourceGatewayId) Sets the value ofCfnResourceConfigurationProps.getResourceGatewayId()
- Parameters:
resourceGatewayId
- The ID of the resource gateway.- Returns:
this
-
tags
Sets the value ofCfnResourceConfigurationProps.getTags()
- Parameters:
tags
- The tags for the resource configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceConfigurationProps>
- Returns:
- a new instance of
CfnResourceConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-