Class Partitions
- java.lang.Object
-
- software.amazon.smithy.rulesengine.aws.language.functions.partition.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 class
Partitions.Builder
A builder used to create aPartitions
class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Partitions.Builder
builder()
Builder to create aPartitions
instance.boolean
equals(java.lang.Object o)
static Partitions
fromNode(Node node)
Creates aPartitions
instance from the given Node information.java.util.List<Partition>
getPartitions()
Gets the list of loaded partitions.SourceLocation
getSourceLocation()
Gets the source location of a value.java.lang.String
getVersion()
Gets the version of the partitions file.int
hashCode()
Partitions.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static Partitions.Builder builder()
Builder to create aPartitions
instance.- Returns:
- returns a new Builder.
-
fromNode
public static Partitions fromNode(Node node)
Creates aPartitions
instance from the given Node information.- Parameters:
node
- the node to deserialize.- Returns:
- the created Partitions.
-
getVersion
public java.lang.String getVersion()
Gets the version of the partitions file.- Returns:
- returns the version of the partitions file.
-
getPartitions
public java.util.List<Partition> getPartitions()
Gets the list of loaded partitions.- Returns:
- returns the list of partitions.
-
getSourceLocation
public SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-
toBuilder
public Partitions.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<Partitions>
- Returns:
- a builder for type T
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-