Class StandardRegionalEndpointsTrait
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTrait
-
- software.amazon.smithy.rulesengine.aws.traits.StandardRegionalEndpointsTrait
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
,ToSmithyBuilder<StandardRegionalEndpointsTrait>
public final class StandardRegionalEndpointsTrait extends AbstractTrait implements ToSmithyBuilder<StandardRegionalEndpointsTrait>
An endpoints modifier trait that indicates that a service's endpoints should be resolved using the standard AWS regional patterns.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StandardRegionalEndpointsTrait.Builder
static class
StandardRegionalEndpointsTrait.Provider
-
Field Summary
Fields Modifier and Type Field Description static ShapeId
ID
static java.lang.String
PARTITION_SPECIAL_CASES
static java.lang.String
REGION_SPECIAL_CASES
-
Constructor Summary
Constructors Constructor Description StandardRegionalEndpointsTrait(StandardRegionalEndpointsTrait.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardRegionalEndpointsTrait.Builder
builder()
protected Node
createNode()
The result of toNode is used for hashCodes and equality.java.util.Map<java.lang.String,java.util.List<PartitionSpecialCase>>
getPartitionSpecialCases()
Gets the map of partition string to a list of partition special cases defined in the trait.java.util.Map<java.lang.String,java.util.List<RegionSpecialCase>>
getRegionSpecialCases()
Gets the map of partition string to a list of region special cases defined in the trait.StandardRegionalEndpointsTrait.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
-
-
-
Field Detail
-
ID
public static final ShapeId ID
-
PARTITION_SPECIAL_CASES
public static final java.lang.String PARTITION_SPECIAL_CASES
- See Also:
- Constant Field Values
-
REGION_SPECIAL_CASES
public static final java.lang.String REGION_SPECIAL_CASES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardRegionalEndpointsTrait
public StandardRegionalEndpointsTrait(StandardRegionalEndpointsTrait.Builder builder)
-
-
Method Detail
-
getPartitionSpecialCases
public java.util.Map<java.lang.String,java.util.List<PartitionSpecialCase>> getPartitionSpecialCases()
Gets the map of partition string to a list of partition special cases defined in the trait.- Returns:
- Returns a map of partition string to a list of
PartitionSpecialCase
-
getRegionSpecialCases
public java.util.Map<java.lang.String,java.util.List<RegionSpecialCase>> getRegionSpecialCases()
Gets the map of partition string to a list of region special cases defined in the trait.- Returns:
- Returns a map of region string to a list of
RegionSpecialCase
-
createNode
protected Node createNode()
Description copied from class:AbstractTrait
The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.- Specified by:
createNode
in classAbstractTrait
- Returns:
- Returns the trait as a node.
-
toBuilder
public StandardRegionalEndpointsTrait.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<StandardRegionalEndpointsTrait>
- Returns:
- a builder for type T
-
builder
public static StandardRegionalEndpointsTrait.Builder builder()
-
-