Enum EndpointPatternType
- java.lang.Object
-
- java.lang.Enum<EndpointPatternType>
-
- software.amazon.smithy.rulesengine.aws.traits.EndpointPatternType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EndpointPatternType>
public enum EndpointPatternType extends java.lang.Enum<EndpointPatternType>
The pattern type to use for the partitional services.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVICE_DNSSUFFIX
An endpoint with pattern `{service}.{dnsSuffix}`.SERVICE_REGION_DNSSUFFIX
An endpoint with pattern `{service}.{region}.{dnsSuffix}`.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointPatternType
fromNode(Node node)
java.lang.String
getName()
Gets the name of a partitional service pattern type.static EndpointPatternType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EndpointPatternType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVICE_DNSSUFFIX
public static final EndpointPatternType SERVICE_DNSSUFFIX
An endpoint with pattern `{service}.{dnsSuffix}`.
-
SERVICE_REGION_DNSSUFFIX
public static final EndpointPatternType SERVICE_REGION_DNSSUFFIX
An endpoint with pattern `{service}.{region}.{dnsSuffix}`.
-
-
Method Detail
-
values
public static EndpointPatternType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EndpointPatternType c : EndpointPatternType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EndpointPatternType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
Gets the name of a partitional service pattern type.- Returns:
- Returns a partitional service pattern type name.
-
fromNode
public static EndpointPatternType fromNode(Node node)
-
-