Class StandardPartitionalEndpointsTrait
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTrait
-
- software.amazon.smithy.rulesengine.aws.traits.StandardPartitionalEndpointsTrait
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
,ToSmithyBuilder<StandardPartitionalEndpointsTrait>
public final class StandardPartitionalEndpointsTrait extends AbstractTrait implements ToSmithyBuilder<StandardPartitionalEndpointsTrait>
An endpoints modifier trait that indicates that a service is partitional and a single endpoint should resolve per partition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StandardPartitionalEndpointsTrait.Builder
static class
StandardPartitionalEndpointsTrait.Provider
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENDPOINT_PATTERN_TYPE
static ShapeId
ID
static java.lang.String
PARTITION_ENDPOINT_SPECIAL_CASES
-
Constructor Summary
Constructors Constructor Description StandardPartitionalEndpointsTrait(StandardPartitionalEndpointsTrait.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardPartitionalEndpointsTrait.Builder
builder()
protected Node
createNode()
The result of toNode is used for hashCodes and equality.EndpointPatternType
getEndpointPatternType()
Gets the endpoint pattern type defined in the trait.java.util.Map<java.lang.String,java.util.List<PartitionEndpointSpecialCase>>
getPartitionEndpointSpecialCases()
Gets the map of partition string to a list of partition endpoint special cases defined in the trait.StandardPartitionalEndpointsTrait.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_ENDPOINT_SPECIAL_CASES
public static final java.lang.String PARTITION_ENDPOINT_SPECIAL_CASES
- See Also:
- Constant Field Values
-
ENDPOINT_PATTERN_TYPE
public static final java.lang.String ENDPOINT_PATTERN_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardPartitionalEndpointsTrait
public StandardPartitionalEndpointsTrait(StandardPartitionalEndpointsTrait.Builder builder)
-
-
Method Detail
-
getPartitionEndpointSpecialCases
public java.util.Map<java.lang.String,java.util.List<PartitionEndpointSpecialCase>> getPartitionEndpointSpecialCases()
Gets the map of partition string to a list of partition endpoint special cases defined in the trait.- Returns:
- Returns a map of partition string to a list of
PartitionEndpointSpecialCase
-
getEndpointPatternType
public EndpointPatternType getEndpointPatternType()
Gets the endpoint pattern type defined in the trait.- Returns:
- Returns a
EndpointPatternType
-
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 StandardPartitionalEndpointsTrait.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<StandardPartitionalEndpointsTrait>
- Returns:
- a builder for type T
-
builder
public static StandardPartitionalEndpointsTrait.Builder builder()
-
-