Class EndpointConfigurationTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<EndpointConfigurationTrait,EndpointConfigurationTrait.Builder>
software.amazon.smithy.aws.apigateway.traits.EndpointConfigurationTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<EndpointConfigurationTrait>
- Enclosing class:
- EndpointConfigurationTrait
public static final class EndpointConfigurationTrait.Builder
extends AbstractTraitBuilder<EndpointConfigurationTrait,EndpointConfigurationTrait.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionAdds an endpoint type.addVpcEndpointId(String vpcEndpointId) Adds a VPC endpoint ID.build()Creates an immutable object that is created from the properties that have been set on the builder.Clears all of the endpoint types in the builder.Clears all of the VPC endpoint IDs in the builder.disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) Sets whether the default execute-api endpoint is disabled.ipAddressType(String ipAddressType) Sets the IP address type that can invoke the API.Sets the endpoint types.vpcEndpointIds(List<String> vpcEndpointIds) Sets the VPC endpoint IDs.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Method Details
-
build
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
types
Sets the endpoint types.- Parameters:
types- The endpoint types to set.- Returns:
- Returns the builder.
-
addType
Adds an endpoint type.- Parameters:
type- The endpoint type to add.- Returns:
- Returns the builder.
-
clearTypes
Clears all of the endpoint types in the builder.- Returns:
- Returns the builder.
-
vpcEndpointIds
Sets the VPC endpoint IDs.- Parameters:
vpcEndpointIds- The VPC endpoint IDs to set.- Returns:
- Returns the builder.
-
addVpcEndpointId
Adds a VPC endpoint ID.- Parameters:
vpcEndpointId- The VPC endpoint ID to add.- Returns:
- Returns the builder.
-
clearVpcEndpointIds
Clears all of the VPC endpoint IDs in the builder.- Returns:
- Returns the builder.
-
disableExecuteApiEndpoint
public EndpointConfigurationTrait.Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) Sets whether the default execute-api endpoint is disabled.- Parameters:
disableExecuteApiEndpoint- The disable flag to set.- Returns:
- Returns the builder.
-
ipAddressType
Sets the IP address type that can invoke the API.- Parameters:
ipAddressType- The IP address type to set (ipv4ordualstack).- Returns:
- Returns the builder.
-