AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Attribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/TargetType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
33class Attribute {
34 public:
35 AWS_ECS_API Attribute() = default;
36 AWS_ECS_API Attribute(Aws::Utils::Json::JsonView jsonValue);
39
41
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 Attribute& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetValue() const { return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 template <typename ValueT = Aws::String>
72 void SetValue(ValueT&& value) {
73 m_valueHasBeenSet = true;
74 m_value = std::forward<ValueT>(value);
75 }
76 template <typename ValueT = Aws::String>
77 Attribute& WithValue(ValueT&& value) {
78 SetValue(std::forward<ValueT>(value));
79 return *this;
80 }
82
84
89 inline TargetType GetTargetType() const { return m_targetType; }
90 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
91 inline void SetTargetType(TargetType value) {
92 m_targetTypeHasBeenSet = true;
93 m_targetType = value;
94 }
96 SetTargetType(value);
97 return *this;
98 }
100
102
106 inline const Aws::String& GetTargetId() const { return m_targetId; }
107 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
108 template <typename TargetIdT = Aws::String>
109 void SetTargetId(TargetIdT&& value) {
110 m_targetIdHasBeenSet = true;
111 m_targetId = std::forward<TargetIdT>(value);
112 }
113 template <typename TargetIdT = Aws::String>
114 Attribute& WithTargetId(TargetIdT&& value) {
115 SetTargetId(std::forward<TargetIdT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_name;
121
122 Aws::String m_value;
123
124 TargetType m_targetType{TargetType::NOT_SET};
125
126 Aws::String m_targetId;
127 bool m_nameHasBeenSet = false;
128 bool m_valueHasBeenSet = false;
129 bool m_targetTypeHasBeenSet = false;
130 bool m_targetIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ECS
135} // namespace Aws
void SetTargetType(TargetType value)
Definition Attribute.h:91
bool NameHasBeenSet() const
Definition Attribute.h:48
AWS_ECS_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithTargetId(TargetIdT &&value)
Definition Attribute.h:114
AWS_ECS_API Attribute(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(TargetIdT &&value)
Definition Attribute.h:109
const Aws::String & GetTargetId() const
Definition Attribute.h:106
bool TargetTypeHasBeenSet() const
Definition Attribute.h:90
Attribute & WithValue(ValueT &&value)
Definition Attribute.h:77
void SetName(NameT &&value)
Definition Attribute.h:50
Attribute & WithTargetType(TargetType value)
Definition Attribute.h:95
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API Attribute()=default
void SetValue(ValueT &&value)
Definition Attribute.h:72
TargetType GetTargetType() const
Definition Attribute.h:89
const Aws::String & GetName() const
Definition Attribute.h:47
bool ValueHasBeenSet() const
Definition Attribute.h:70
bool TargetIdHasBeenSet() const
Definition Attribute.h:107
const Aws::String & GetValue() const
Definition Attribute.h:69
Attribute & WithName(NameT &&value)
Definition Attribute.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue