/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the states-2016-11-23.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.StepFunctions.Model { /// /// Container for the parameters to the UpdateStateMachineAlias operation. /// Updates the configuration of an existing state machine alias /// by modifying its description or routingConfiguration. /// /// /// /// You must specify at least one of the description or routingConfiguration /// parameters to update a state machine alias. /// /// /// /// UpdateStateMachineAlias is an idempotent API. Step Functions bases the /// idempotency check on the stateMachineAliasArn, description, /// and routingConfiguration parameters. Requests with the same parameters /// return an idempotent response. /// /// /// /// This operation is eventually consistent. All StartExecution requests made within /// a few seconds use the latest alias configuration. Executions started immediately after /// calling UpdateStateMachineAlias may use the previous routing configuration. /// /// /// /// Related operations: /// /// /// public partial class UpdateStateMachineAliasRequest : AmazonStepFunctionsRequest { private string _description; private List _routingConfiguration = new List(); private string _stateMachineAliasArn; /// /// Gets and sets the property Description. /// /// A description of the state machine alias. /// /// [AWSProperty(Sensitive=true, Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property RoutingConfiguration. /// /// The routing configuration of the state machine alias. /// /// /// /// An array of RoutingConfig objects that specifies up to two state machine /// versions that the alias starts executions for. /// /// [AWSProperty(Min=1, Max=2)] public List RoutingConfiguration { get { return this._routingConfiguration; } set { this._routingConfiguration = value; } } // Check to see if RoutingConfiguration property is set internal bool IsSetRoutingConfiguration() { return this._routingConfiguration != null && this._routingConfiguration.Count > 0; } /// /// Gets and sets the property StateMachineAliasArn. /// /// The Amazon Resource Name (ARN) of the state machine alias. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string StateMachineAliasArn { get { return this._stateMachineAliasArn; } set { this._stateMachineAliasArn = value; } } // Check to see if StateMachineAliasArn property is set internal bool IsSetStateMachineAliasArn() { return this._stateMachineAliasArn != null; } } }