Class Partition
java.lang.Object
software.amazon.smithy.rulesengine.aws.language.functions.partition.Partition
- All Implemented Interfaces:
FromSourceLocation,ToNode,ToSmithyBuilder<Partition>
public final class Partition
extends Object
implements ToSmithyBuilder<Partition>, FromSourceLocation, ToNode
Describes an AWS partition, its regions, and the outputs to be provided from the rule-set aws.partition function.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Partition.Builderbuilder()Builder to create aPartitioninstance.booleanstatic PartitionCreates aPartitioninstance from the given Node information.getId()Gets the ID of the partition.Gets the supported configuration output for this partition.Gets the regular expression to match regions in this partition.Gets this partition's map of region names to region-specific overriding data.Gets the source location of a value.inthashCode()Take this object and create a builder that contains all of the current property values of this object.toNode()Converts a value to aNode.
-
Method Details
-
builder
Builder to create aPartitioninstance.- Returns:
- returns a new Builder.
-
fromNode
Creates aPartitioninstance from the given Node information.- Parameters:
node- the node to deserialize.- Returns:
- the created Partition.
-
getId
Gets the ID of the partition.- Returns:
- returns the partition's ID.
-
getRegionRegex
Gets the regular expression to match regions in this partition.- Returns:
- returns the regular expression to match regions in this partition.
-
getRegions
Gets this partition's map of region names to region-specific overriding data.- Returns:
- returns a map of region names to region-specific overriding data.
-
getOutputs
Gets the supported configuration output for this partition.- Returns:
- returns the partition's configuration outputs.
-
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
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
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode()
-