AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/KeyValuePair.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API Attachment() = default;
33 AWS_ECS_API Attachment(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Attachment& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
68 Attachment& WithType(TypeT&& value) {
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template <typename StatusT = Aws::String>
84 void SetStatus(StatusT&& value) {
85 m_statusHasBeenSet = true;
86 m_status = std::forward<StatusT>(value);
87 }
88 template <typename StatusT = Aws::String>
89 Attachment& WithStatus(StatusT&& value) {
90 SetStatus(std::forward<StatusT>(value));
91 return *this;
92 }
94
96
106 inline const Aws::Vector<KeyValuePair>& GetDetails() const { return m_details; }
107 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
108 template <typename DetailsT = Aws::Vector<KeyValuePair>>
109 void SetDetails(DetailsT&& value) {
110 m_detailsHasBeenSet = true;
111 m_details = std::forward<DetailsT>(value);
112 }
113 template <typename DetailsT = Aws::Vector<KeyValuePair>>
114 Attachment& WithDetails(DetailsT&& value) {
115 SetDetails(std::forward<DetailsT>(value));
116 return *this;
117 }
118 template <typename DetailsT = KeyValuePair>
119 Attachment& AddDetails(DetailsT&& value) {
120 m_detailsHasBeenSet = true;
121 m_details.emplace_back(std::forward<DetailsT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_id;
127
128 Aws::String m_type;
129
130 Aws::String m_status;
131
133 bool m_idHasBeenSet = false;
134 bool m_typeHasBeenSet = false;
135 bool m_statusHasBeenSet = false;
136 bool m_detailsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ECS
141} // namespace Aws
AWS_ECS_API Attachment(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Attachment.h:41
bool StatusHasBeenSet() const
Definition Attachment.h:82
Attachment & WithId(IdT &&value)
Definition Attachment.h:49
void SetId(IdT &&value)
Definition Attachment.h:44
void SetType(TypeT &&value)
Definition Attachment.h:63
AWS_ECS_API Attachment()=default
Attachment & WithDetails(DetailsT &&value)
Definition Attachment.h:114
Attachment & WithStatus(StatusT &&value)
Definition Attachment.h:89
void SetDetails(DetailsT &&value)
Definition Attachment.h:109
void SetStatus(StatusT &&value)
Definition Attachment.h:84
const Aws::String & GetType() const
Definition Attachment.h:60
const Aws::Vector< KeyValuePair > & GetDetails() const
Definition Attachment.h:106
const Aws::String & GetStatus() const
Definition Attachment.h:81
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
Attachment & AddDetails(DetailsT &&value)
Definition Attachment.h:119
Attachment & WithType(TypeT &&value)
Definition Attachment.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue