/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SFN { namespace Model { /** */ class CreateStateMachineAliasRequest : public SFNRequest { public: AWS_SFN_API CreateStateMachineAliasRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateStateMachineAlias"; } AWS_SFN_API Aws::String SerializePayload() const override; AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A description for the state machine alias.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the state machine alias.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the state machine alias.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the state machine alias.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the state machine alias.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the state machine alias.

*/ inline CreateStateMachineAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the state machine alias.

*/ inline CreateStateMachineAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the state machine alias.

*/ inline CreateStateMachineAliasRequest& WithDescription(const char* value) { SetDescription(value); 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.

*/ inline const Aws::String& GetName() const{ return m_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.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the state machine alias.

To avoid conflict with version * ARNs, don't use an integer in the name of the alias.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the state machine alias.

To avoid conflict with version * ARNs, don't use an integer in the name of the alias.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the state machine alias.

To avoid conflict with version * ARNs, don't use an integer in the name of the alias.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the state machine alias.

To avoid conflict with version * ARNs, don't use an integer in the name of the alias.

*/ inline CreateStateMachineAliasRequest& WithName(const Aws::String& value) { SetName(value); 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.

*/ inline CreateStateMachineAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); 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.

*/ inline CreateStateMachineAliasRequest& WithName(const char* value) { SetName(value); 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.

*/ inline const Aws::Vector& GetRoutingConfiguration() const{ return m_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.

*/ inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; } /** *

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.

*/ inline void SetRoutingConfiguration(const Aws::Vector& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = value; } /** *

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.

*/ inline void SetRoutingConfiguration(Aws::Vector&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::move(value); } /** *

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.

*/ inline CreateStateMachineAliasRequest& WithRoutingConfiguration(const Aws::Vector& value) { SetRoutingConfiguration(value); 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.

*/ inline CreateStateMachineAliasRequest& WithRoutingConfiguration(Aws::Vector&& value) { SetRoutingConfiguration(std::move(value)); 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.

*/ inline CreateStateMachineAliasRequest& AddRoutingConfiguration(const RoutingConfigurationListItem& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.push_back(value); 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.

*/ inline CreateStateMachineAliasRequest& AddRoutingConfiguration(RoutingConfigurationListItem&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.push_back(std::move(value)); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_routingConfiguration; bool m_routingConfigurationHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws