public static final class CfnAlias.RoutingStrategyProperty.Builder
extends java.lang.Object
CfnAlias.RoutingStrategyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAlias.RoutingStrategyProperty |
build()
Builds the configured instance.
|
CfnAlias.RoutingStrategyProperty.Builder |
fleetId(java.lang.String fleetId)
Sets the value of
CfnAlias.RoutingStrategyProperty.getFleetId() |
CfnAlias.RoutingStrategyProperty.Builder |
message(java.lang.String message)
Sets the value of
CfnAlias.RoutingStrategyProperty.getMessage() |
CfnAlias.RoutingStrategyProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnAlias.RoutingStrategyProperty.getType() |
public CfnAlias.RoutingStrategyProperty.Builder type(java.lang.String type)
CfnAlias.RoutingStrategyProperty.getType()
type
- A type of routing strategy. This parameter is required.
Possible routing types include the following:
TerminalRoutingStrategyException
with the message that you specified in the Message
property.this
public CfnAlias.RoutingStrategyProperty.Builder fleetId(java.lang.String fleetId)
CfnAlias.RoutingStrategyProperty.getFleetId()
fleetId
- A unique identifier for a fleet that the alias points to.
If you specify SIMPLE
for the Type
property, you must specify this property.this
public CfnAlias.RoutingStrategyProperty.Builder message(java.lang.String message)
CfnAlias.RoutingStrategyProperty.getMessage()
message
- The message text to be used with a terminal routing strategy.
If you specify TERMINAL
for the Type
property, you must specify this property.this
public CfnAlias.RoutingStrategyProperty build()
CfnAlias.RoutingStrategyProperty
java.lang.NullPointerException
- if any required attribute was not provided