/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.stepfunctions.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateStateMachineAliasRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A description for the state machine alias. *
*/ private String description; /** ** The name of the state machine alias. *
** To avoid conflict with version ARNs, don't use an integer in the name of the alias. *
*/ private String name; /** *
* The routing configuration of a state machine alias. The routing configuration shifts execution traffic between
* two state machine versions. routingConfiguration
contains an array of RoutingConfig
* objects that specify up to two state machine versions. Step Functions then randomly choses which version to run
* an execution with based on the weight assigned to each RoutingConfig
.
*
* A description for the state machine alias. *
* * @param description * A description for the state machine alias. */ public void setDescription(String description) { this.description = description; } /** ** A description for the state machine alias. *
* * @return A description for the state machine alias. */ public String getDescription() { return this.description; } /** ** A description for the state machine alias. *
* * @param description * A description for the state machine alias. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStateMachineAliasRequest withDescription(String description) { setDescription(description); return this; } /** ** The name of the state machine alias. *
** To avoid conflict with version ARNs, don't use an integer in the name of the alias. *
* * @param name * The name of the state machine alias. ** To avoid conflict with version ARNs, don't use an integer in the name of the alias. */ public void setName(String name) { this.name = name; } /** *
* The name of the state machine alias. *
** To avoid conflict with version ARNs, don't use an integer in the name of the alias. *
* * @return The name of the state machine alias. ** To avoid conflict with version ARNs, don't use an integer in the name of the alias. */ public String getName() { return this.name; } /** *
* The name of the state machine alias. *
** To avoid conflict with version ARNs, don't use an integer in the name of the alias. *
* * @param name * The name of the state machine alias. ** To avoid conflict with version ARNs, don't use an integer in the name of the alias. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStateMachineAliasRequest withName(String name) { setName(name); return this; } /** *
* The routing configuration of a state machine alias. The routing configuration shifts execution traffic between
* two state machine versions. routingConfiguration
contains an array of RoutingConfig
* objects that specify up to two state machine versions. Step Functions then randomly choses which version to run
* an execution with based on the weight assigned to each RoutingConfig
.
*
routingConfiguration
contains an array of
* RoutingConfig
objects that specify up to two state machine versions. Step Functions then
* randomly choses which version to run an execution with based on the weight assigned to each
* RoutingConfig
.
*/
public java.util.List
* The routing configuration of a state machine alias. The routing configuration shifts execution traffic between
* two state machine versions. routingConfiguration
contains an array of RoutingConfig
* objects that specify up to two state machine versions. Step Functions then randomly choses which version to run
* an execution with based on the weight assigned to each RoutingConfig
.
*
routingConfiguration
contains an array of
* RoutingConfig
objects that specify up to two state machine versions. Step Functions then
* randomly choses which version to run an execution with based on the weight assigned to each
* RoutingConfig
.
*/
public void setRoutingConfiguration(java.util.Collection
* The routing configuration of a state machine alias. The routing configuration shifts execution traffic between
* two state machine versions. routingConfiguration
contains an array of RoutingConfig
* objects that specify up to two state machine versions. Step Functions then randomly choses which version to run
* an execution with based on the weight assigned to each RoutingConfig
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRoutingConfiguration(java.util.Collection)} or {@link #withRoutingConfiguration(java.util.Collection)} * if you want to override the existing values. *
* * @param routingConfiguration * The routing configuration of a state machine alias. The routing configuration shifts execution traffic * between two state machine versions.routingConfiguration
contains an array of
* RoutingConfig
objects that specify up to two state machine versions. Step Functions then
* randomly choses which version to run an execution with based on the weight assigned to each
* RoutingConfig
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateStateMachineAliasRequest withRoutingConfiguration(RoutingConfigurationListItem... routingConfiguration) {
if (this.routingConfiguration == null) {
setRoutingConfiguration(new java.util.ArrayList
* The routing configuration of a state machine alias. The routing configuration shifts execution traffic between
* two state machine versions. routingConfiguration
contains an array of RoutingConfig
* objects that specify up to two state machine versions. Step Functions then randomly choses which version to run
* an execution with based on the weight assigned to each RoutingConfig
.
*
routingConfiguration
contains an array of
* RoutingConfig
objects that specify up to two state machine versions. Step Functions then
* randomly choses which version to run an execution with based on the weight assigned to each
* RoutingConfig
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateStateMachineAliasRequest withRoutingConfiguration(java.util.Collection