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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected Node
The result of toNode is used for hashCodes and equality.Gets the endpoint pattern type defined in the trait.Gets the map of partition string to a list of partition endpoint special cases defined in the trait.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 Details
-
ID
-
PARTITION_ENDPOINT_SPECIAL_CASES
- See Also:
-
ENDPOINT_PATTERN_TYPE
- See Also:
-
-
Constructor Details
-
StandardPartitionalEndpointsTrait
-
-
Method Details
-
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
Gets the endpoint pattern type defined in the trait.- Returns:
- Returns a
EndpointPatternType
-
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
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
-