Class Partition
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.model.Partition
-
- All Implemented Interfaces:
FromSourceLocation,ToNode,ToSmithyBuilder<Partition>
public final class Partition extends java.lang.Object implements ToSmithyBuilder<Partition>, FromSourceLocation, ToNode
Describes an AWS partition, it's regions, and the outputs to be provided by the rule-set aws.partition function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Partition.Builderbuilder()booleanequals(java.lang.Object o)static PartitionfromNode(Node node)PartitionOutputsgetOutputs()SourceLocationgetSourceLocation()Gets the source location of a value.inthashCode()java.lang.Stringid()java.lang.StringregionRegex()java.util.Map<java.lang.String,RegionOverride>regions()SmithyBuilder<Partition>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.
-
-
-
Method Detail
-
builder
public static Partition.Builder builder()
-
id
public java.lang.String id()
-
regionRegex
public java.lang.String regionRegex()
-
regions
public java.util.Map<java.lang.String,RegionOverride> regions()
-
getOutputs
public PartitionOutputs getOutputs()
-
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<Partition> 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<Partition>- Returns:
- a builder for type T
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-