AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Attachment.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/KeyValuePair.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECS_API Attachment();
38 AWS_ECS_API Attachment(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Attachment& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Attachment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Attachment& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline Attachment& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline Attachment& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline Attachment& WithType(const char* value) { SetType(value); return *this;}
71
73
79 inline const Aws::String& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
84 inline Attachment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
85 inline Attachment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
86 inline Attachment& WithStatus(const char* value) { SetStatus(value); return *this;}
88
90
100 inline const Aws::Vector<KeyValuePair>& GetDetails() const{ return m_details; }
101 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
102 inline void SetDetails(const Aws::Vector<KeyValuePair>& value) { m_detailsHasBeenSet = true; m_details = value; }
103 inline void SetDetails(Aws::Vector<KeyValuePair>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
104 inline Attachment& WithDetails(const Aws::Vector<KeyValuePair>& value) { SetDetails(value); return *this;}
105 inline Attachment& WithDetails(Aws::Vector<KeyValuePair>&& value) { SetDetails(std::move(value)); return *this;}
106 inline Attachment& AddDetails(const KeyValuePair& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
107 inline Attachment& AddDetails(KeyValuePair&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_type;
115 bool m_typeHasBeenSet = false;
116
117 Aws::String m_status;
118 bool m_statusHasBeenSet = false;
119
121 bool m_detailsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ECS
126} // namespace Aws
AWS_ECS_API Attachment(Aws::Utils::Json::JsonView jsonValue)
void SetId(Aws::String &&value)
Definition Attachment.h:50
const Aws::String & GetId() const
Definition Attachment.h:47
Attachment & WithId(const char *value)
Definition Attachment.h:54
bool StatusHasBeenSet() const
Definition Attachment.h:80
void SetDetails(const Aws::Vector< KeyValuePair > &value)
Definition Attachment.h:102
Attachment & AddDetails(const KeyValuePair &value)
Definition Attachment.h:106
Attachment & WithType(const Aws::String &value)
Definition Attachment.h:67
Attachment & WithStatus(const Aws::String &value)
Definition Attachment.h:84
Attachment & WithType(Aws::String &&value)
Definition Attachment.h:68
void SetId(const Aws::String &value)
Definition Attachment.h:49
Attachment & WithDetails(const Aws::Vector< KeyValuePair > &value)
Definition Attachment.h:104
void SetType(const Aws::String &value)
Definition Attachment.h:64
Attachment & WithStatus(const char *value)
Definition Attachment.h:86
void SetStatus(const Aws::String &value)
Definition Attachment.h:81
void SetStatus(const char *value)
Definition Attachment.h:83
Attachment & WithDetails(Aws::Vector< KeyValuePair > &&value)
Definition Attachment.h:105
const Aws::String & GetType() const
Definition Attachment.h:62
Attachment & WithId(Aws::String &&value)
Definition Attachment.h:53
Attachment & AddDetails(KeyValuePair &&value)
Definition Attachment.h:107
void SetType(const char *value)
Definition Attachment.h:66
Attachment & WithType(const char *value)
Definition Attachment.h:69
const Aws::Vector< KeyValuePair > & GetDetails() const
Definition Attachment.h:100
void SetDetails(Aws::Vector< KeyValuePair > &&value)
Definition Attachment.h:103
void SetId(const char *value)
Definition Attachment.h:51
void SetType(Aws::String &&value)
Definition Attachment.h:65
const Aws::String & GetStatus() const
Definition Attachment.h:79
Attachment & WithId(const Aws::String &value)
Definition Attachment.h:52
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Attachment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(Aws::String &&value)
Definition Attachment.h:82
Attachment & WithStatus(Aws::String &&value)
Definition Attachment.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue