Class StandardRegionalEndpointsTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<StandardRegionalEndpointsTrait,StandardRegionalEndpointsTrait.Builder>
-
- software.amazon.smithy.rulesengine.aws.traits.StandardRegionalEndpointsTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<StandardRegionalEndpointsTrait>
- Enclosing class:
- StandardRegionalEndpointsTrait
public static final class StandardRegionalEndpointsTrait.Builder extends AbstractTraitBuilder<StandardRegionalEndpointsTrait,StandardRegionalEndpointsTrait.Builder>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardRegionalEndpointsTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.StandardRegionalEndpointsTrait.Builder
partitionSpecialCases(java.util.Map<java.lang.String,java.util.List<PartitionSpecialCase>> partitionSpecialCases)
Sets the partition special cases.StandardRegionalEndpointsTrait.Builder
putPartitionSpecialCases(java.lang.String partition, java.util.List<PartitionSpecialCase> partitionSpecialCases)
Sets the list of partition special cases for a partition.StandardRegionalEndpointsTrait.Builder
putRegionSpecialCases(java.lang.String region, java.util.List<RegionSpecialCase> regionSpecialCases)
Sets the list of region special cases for a region.StandardRegionalEndpointsTrait.Builder
regionSpecialCases(java.util.Map<java.lang.String,java.util.List<RegionSpecialCase>> regionSpecialCases)
Sets the region special cases.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
partitionSpecialCases
public StandardRegionalEndpointsTrait.Builder partitionSpecialCases(java.util.Map<java.lang.String,java.util.List<PartitionSpecialCase>> partitionSpecialCases)
Sets the partition special cases.- Parameters:
partitionSpecialCases
- Map of partition string to list ofPartitionSpecialCase
- Returns:
- Returns the builder.
-
putPartitionSpecialCases
public StandardRegionalEndpointsTrait.Builder putPartitionSpecialCases(java.lang.String partition, java.util.List<PartitionSpecialCase> partitionSpecialCases)
Sets the list of partition special cases for a partition.- Parameters:
partition
- the partition to usepartitionSpecialCases
- Map of partition string to list ofPartitionSpecialCase
- Returns:
- Returns the builder.
-
regionSpecialCases
public StandardRegionalEndpointsTrait.Builder regionSpecialCases(java.util.Map<java.lang.String,java.util.List<RegionSpecialCase>> regionSpecialCases)
Sets the region special cases.- Parameters:
regionSpecialCases
- Map of region string to list ofRegionSpecialCase
- Returns:
- Returns the builder.
-
putRegionSpecialCases
public StandardRegionalEndpointsTrait.Builder putRegionSpecialCases(java.lang.String region, java.util.List<RegionSpecialCase> regionSpecialCases)
Sets the list of region special cases for a region.- Parameters:
region
- the region to useregionSpecialCases
- Map of region string to list ofRegionSpecialCase
- Returns:
- Returns the builder.
-
build
public StandardRegionalEndpointsTrait 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
-
-