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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an immutable object that is created from the properties that have been set on the builder.partitionSpecialCases
(Map<String, List<PartitionSpecialCase>> partitionSpecialCases) Sets the partition special cases.putPartitionSpecialCases
(String partition, List<PartitionSpecialCase> partitionSpecialCases) Sets the list of partition special cases for a partition.putRegionSpecialCases
(String region, List<RegionSpecialCase> regionSpecialCases) Sets the list of region special cases for a region.regionSpecialCases
(Map<String, List<RegionSpecialCase>> regionSpecialCases) Sets the region special cases.Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionSpecialCases
public StandardRegionalEndpointsTrait.Builder partitionSpecialCases(Map<String, 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(String partition, 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(Map<String, 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(String region, 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
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
-