Class StandardPartitionalEndpointsTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<StandardPartitionalEndpointsTrait,StandardPartitionalEndpointsTrait.Builder>
software.amazon.smithy.rulesengine.aws.traits.StandardPartitionalEndpointsTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<StandardPartitionalEndpointsTrait>
- Enclosing class:
- StandardPartitionalEndpointsTrait
public static final class StandardPartitionalEndpointsTrait.Builder
extends AbstractTraitBuilder<StandardPartitionalEndpointsTrait,StandardPartitionalEndpointsTrait.Builder>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an immutable object that is created from the properties that have been set on the builder.endpointPatternType
(EndpointPatternType endpointPatternType) Sets the endpoint pattern type.partitionEndpointSpecialCases
(Map<String, List<PartitionEndpointSpecialCase>> partitionEndpointSpecialCases) Sets the partition endpoint special cases.putPartitionEndpointSpecialCase
(String partition, List<PartitionEndpointSpecialCase> partitionEndpointSpecialCases) Sets the list of partition endpoint special cases for a partition.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionEndpointSpecialCases
public StandardPartitionalEndpointsTrait.Builder partitionEndpointSpecialCases(Map<String, List<PartitionEndpointSpecialCase>> partitionEndpointSpecialCases) Sets the partition endpoint special cases.- Parameters:
partitionEndpointSpecialCases
- Map of partition string to list ofPartitionEndpointSpecialCase
- Returns:
- Returns the builder.
-
putPartitionEndpointSpecialCase
public StandardPartitionalEndpointsTrait.Builder putPartitionEndpointSpecialCase(String partition, List<PartitionEndpointSpecialCase> partitionEndpointSpecialCases) Sets the list of partition endpoint special cases for a partition.- Parameters:
partition
- the partition to usepartitionEndpointSpecialCases
- Map of partition string to list ofPartitionEndpointSpecialCase
- Returns:
- Returns the builder.
-
endpointPatternType
public StandardPartitionalEndpointsTrait.Builder endpointPatternType(EndpointPatternType endpointPatternType) Sets the endpoint pattern type.- Parameters:
endpointPatternType
- the endpoint pattern type to use- Returns:
- Returns the builder.
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-