/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

An object representing a change in state for a task attachment.

See * Also:

AWS * API Reference

*/ class AttachmentStateChange { public: AWS_ECS_API AttachmentStateChange(); AWS_ECS_API AttachmentStateChange(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API AttachmentStateChange& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline const Aws::String& GetAttachmentArn() const{ return m_attachmentArn; } /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline void SetAttachmentArn(const Aws::String& value) { m_attachmentArnHasBeenSet = true; m_attachmentArn = value; } /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline void SetAttachmentArn(Aws::String&& value) { m_attachmentArnHasBeenSet = true; m_attachmentArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline void SetAttachmentArn(const char* value) { m_attachmentArnHasBeenSet = true; m_attachmentArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline AttachmentStateChange& WithAttachmentArn(const Aws::String& value) { SetAttachmentArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline AttachmentStateChange& WithAttachmentArn(Aws::String&& value) { SetAttachmentArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the attachment.

*/ inline AttachmentStateChange& WithAttachmentArn(const char* value) { SetAttachmentArn(value); return *this;} /** *

The status of the attachment.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the attachment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the attachment.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the attachment.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the attachment.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the attachment.

*/ inline AttachmentStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the attachment.

*/ inline AttachmentStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the attachment.

*/ inline AttachmentStateChange& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_attachmentArn; bool m_attachmentArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws