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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardPartitionalEndpointsTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.StandardPartitionalEndpointsTrait.Builder
endpointPatternType(EndpointPatternType endpointPatternType)
Sets the endpoint pattern type.StandardPartitionalEndpointsTrait.Builder
partitionEndpointSpecialCases(java.util.Map<java.lang.String,java.util.List<PartitionEndpointSpecialCase>> partitionEndpointSpecialCases)
Sets the partition endpoint special cases.StandardPartitionalEndpointsTrait.Builder
putPartitionEndpointSpecialCase(java.lang.String partition, java.util.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
-
-
-
-
Method Detail
-
partitionEndpointSpecialCases
public StandardPartitionalEndpointsTrait.Builder partitionEndpointSpecialCases(java.util.Map<java.lang.String,java.util.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(java.lang.String partition, java.util.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
public StandardPartitionalEndpointsTrait 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
-
-