Class PartitionOutputs
- java.lang.Object
-
- software.amazon.smithy.rulesengine.aws.language.functions.partition.PartitionOutputs
-
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToSmithyBuilder<PartitionOutputs>
public final class PartitionOutputs extends java.lang.Object implements ToSmithyBuilder<PartitionOutputs>, FromSourceLocation, ToNode
The outputs to be provided by the rule-set aws.partition function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PartitionOutputs.Builder
A builder used to create aPartition
class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PartitionOutputs.Builder
builder()
Builder to create aPartitionOutputs
instance.boolean
equals(java.lang.Object o)
static PartitionOutputs
fromNode(Node node)
Creates aPartitionOutputs
instance from the given Node information.java.lang.String
getDnsSuffix()
Gets this partition's default DNS suffix.java.lang.String
getDualStackDnsSuffix()
Gets this partition's dual stack DNS suffix.java.lang.String
getImplicitGlobalRegion()
Gets this partition's implicit global region: the region that non-regionalized (global) services should use for signing.java.util.Optional<java.lang.String>
getName()
Gets this partition's name.SourceLocation
getSourceLocation()
Gets the source location of a value.int
hashCode()
boolean
supportsDualStack()
Returns true if the partition supports dual stack.boolean
supportsFips()
Returns true if the partition supports FIPS.SmithyBuilder<PartitionOutputs>
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 PartitionOutputs.Builder builder()
Builder to create aPartitionOutputs
instance.- Returns:
- returns a new Builder.
-
fromNode
public static PartitionOutputs fromNode(Node node)
Creates aPartitionOutputs
instance from the given Node information.- Parameters:
node
- the node to deserialize.- Returns:
- the created PartitionOutputs.
-
getName
public java.util.Optional<java.lang.String> getName()
Gets this partition's name.- Returns:
- returns the partition's name.
-
getDnsSuffix
public java.lang.String getDnsSuffix()
Gets this partition's default DNS suffix.- Returns:
- returns the DNS suffix.
-
getDualStackDnsSuffix
public java.lang.String getDualStackDnsSuffix()
Gets this partition's dual stack DNS suffix.- Returns:
- returns the DNS suffix for dual stack endpoints.
-
supportsFips
public boolean supportsFips()
Returns true if the partition supports FIPS.- Returns:
- returns true of FIPS is supported.
-
supportsDualStack
public boolean supportsDualStack()
Returns true if the partition supports dual stack.- Returns:
- returns true of dual stack is supported.
-
getImplicitGlobalRegion
public java.lang.String getImplicitGlobalRegion()
Gets this partition's implicit global region: the region that non-regionalized (global) services should use for signing.- Returns:
- returns the partition's implicit global region.
-
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<PartitionOutputs> 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<PartitionOutputs>
- 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
-
-