/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SFN { namespace Model { /** */ class PublishStateMachineVersionRequest : public SFNRequest { public: AWS_SFN_API PublishStateMachineVersionRequest(); // 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 "PublishStateMachineVersion"; } AWS_SFN_API Aws::String SerializePayload() const override; AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline const Aws::String& GetStateMachineArn() const{ return m_stateMachineArn; } /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline bool StateMachineArnHasBeenSet() const { return m_stateMachineArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline void SetStateMachineArn(const Aws::String& value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn = value; } /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline void SetStateMachineArn(Aws::String&& value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline void SetStateMachineArn(const char* value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline PublishStateMachineVersionRequest& WithStateMachineArn(const Aws::String& value) { SetStateMachineArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline PublishStateMachineVersionRequest& WithStateMachineArn(Aws::String&& value) { SetStateMachineArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the state machine.

*/ inline PublishStateMachineVersionRequest& WithStateMachineArn(const char* value) { SetStateMachineArn(value); return *this;} /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline PublishStateMachineVersionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline PublishStateMachineVersionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

Only publish the state machine version if the current state machine's * revision ID matches the specified ID.

Use this option to avoid publishing * a version if the state machine changed since you last updated it. If the * specified revision ID doesn't match the state machine's current revision ID, the * API returns ConflictException.

To specify an initial * revision ID for a state machine with no revision ID assigned, specify the string * INITIAL for the revisionId parameter. For example, you * can specify a revisionID of INITIAL when you create a * state machine using the CreateStateMachine API action.

*/ inline PublishStateMachineVersionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

An optional description of the state machine version.

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

An optional description of the state machine version.

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

An optional description of the state machine version.

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

An optional description of the state machine version.

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

An optional description of the state machine version.

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

An optional description of the state machine version.

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

An optional description of the state machine version.

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

An optional description of the state machine version.

*/ inline PublishStateMachineVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_stateMachineArn; bool m_stateMachineArnHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws