AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Attachment& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
64 template<typename TypeT = Aws::String>
65 Attachment& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
67
69
75 inline const Aws::String& GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 template<typename StatusT = Aws::String>
78 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
79 template<typename StatusT = Aws::String>
80 Attachment& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
82
84
94 inline const Aws::Vector<KeyValuePair>& GetDetails() const { return m_details; }
95 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
96 template<typename DetailsT = Aws::Vector<KeyValuePair>>
97 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
98 template<typename DetailsT = Aws::Vector<KeyValuePair>>
99 Attachment& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
100 template<typename DetailsT = KeyValuePair>
101 Attachment& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
103 private:
104
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
108 Aws::String m_type;
109 bool m_typeHasBeenSet = false;
110
111 Aws::String m_status;
112 bool m_statusHasBeenSet = false;
113
115 bool m_detailsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ECS
120} // namespace Aws
AWS_ECS_API Attachment(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Attachment.h:47
bool StatusHasBeenSet() const
Definition Attachment.h:76
Attachment & WithId(IdT &&value)
Definition Attachment.h:52
void SetId(IdT &&value)
Definition Attachment.h:50
bool DetailsHasBeenSet() const
Definition Attachment.h:95
void SetType(TypeT &&value)
Definition Attachment.h:63
AWS_ECS_API Attachment()=default
Attachment & WithDetails(DetailsT &&value)
Definition Attachment.h:99
Attachment & WithStatus(StatusT &&value)
Definition Attachment.h:80
void SetDetails(DetailsT &&value)
Definition Attachment.h:97
void SetStatus(StatusT &&value)
Definition Attachment.h:78
const Aws::String & GetType() const
Definition Attachment.h:60
const Aws::Vector< KeyValuePair > & GetDetails() const
Definition Attachment.h:94
const Aws::String & GetStatus() const
Definition Attachment.h:75
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:101
Attachment & WithType(TypeT &&value)
Definition Attachment.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue