Class Partitions
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.model.Partitions
-
- All Implemented Interfaces:
FromSourceLocation,ToNode,ToSmithyBuilder<Partitions>
public final class Partitions extends java.lang.Object implements ToSmithyBuilder<Partitions>, FromSourceLocation, ToNode
A model for defining the set of partitions that are used by the rule-set aws.partition function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartitions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Partitions.Builderbuilder()booleanequals(java.lang.Object o)static PartitionsfromNode(Node node)SourceLocationgetSourceLocation()Gets the source location of a value.inthashCode()java.util.List<Partition>partitions()SmithyBuilder<Partitions>toBuilder()Take this object and create a builder that contains all of the current property values of this object.NodetoNode()Converts a value to aNode.java.lang.StringtoString()java.lang.Stringversion()
-
-
-
Method Detail
-
fromNode
public static Partitions fromNode(Node node)
-
builder
public static Partitions.Builder builder()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
version
public java.lang.String version()
-
partitions
public java.util.List<Partition> partitions()
-
getSourceLocation
public SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
toBuilder
public SmithyBuilder<Partitions> toBuilder()
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<Partitions>- Returns:
- a builder for type T
-
-