/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 container instance or task attachment.

See * Also:

AWS API * Reference

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

The unique identifier for the attachment.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the attachment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the attachment.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the attachment.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the attachment.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the attachment.

*/ inline Attachment& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the attachment.

*/ inline Attachment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the attachment.

*/ inline Attachment& WithId(const char* value) { SetId(value); return *this;} /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline Attachment& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline Attachment& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the attachment, such as ElasticNetworkInterface.

*/ inline Attachment& WithType(const char* value) { SetType(value); return *this;} /** *

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

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

The status of the attachment. Valid values are PRECREATED, * CREATED, ATTACHING, ATTACHED, * DETACHING, DETACHED, DELETED, and * FAILED.

*/ inline Attachment& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline const Aws::Vector& GetDetails() const{ return m_details; } /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline void SetDetails(const Aws::Vector& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline void SetDetails(Aws::Vector&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline Attachment& WithDetails(const Aws::Vector& value) { SetDetails(value); return *this;} /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline Attachment& WithDetails(Aws::Vector&& value) { SetDetails(std::move(value)); return *this;} /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline Attachment& AddDetails(const KeyValuePair& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; } /** *

Details of the attachment. For elastic network interfaces, this includes the * network interface ID, the MAC address, the subnet ID, and the private IPv4 * address.

*/ inline Attachment& AddDetails(KeyValuePair&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Vector m_details; bool m_detailsHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws