Class RegionOverride
- java.lang.Object
-
- software.amazon.smithy.rulesengine.aws.language.functions.partition.RegionOverride
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToSmithyBuilder<RegionOverride>
public final class RegionOverride extends java.lang.Object implements ToSmithyBuilder<RegionOverride>, FromSourceLocation, ToNode
Provides a facility for overriding a partition's regions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegionOverride.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegionOverride.Builder
builder()
Builder to create aRegionOverride
instance.boolean
equals(java.lang.Object obj)
static RegionOverride
fromNode(Node node)
Creates aRegionOverride
instance from the given Node information.SourceLocation
getSourceLocation()
Gets the source location of a value.int
hashCode()
SmithyBuilder<RegionOverride>
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
.
-
-
-
Method Detail
-
builder
public static RegionOverride.Builder builder()
Builder to create aRegionOverride
instance.- Returns:
- returns a new Builder.
-
fromNode
public static RegionOverride fromNode(Node node)
Creates aRegionOverride
instance from the given Node information.- Parameters:
node
- the node to deserialize.- Returns:
- the created RegionOverride.
-
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 SmithyBuilder<RegionOverride> 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<RegionOverride>
- Returns:
- a builder for type T
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-