AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Attribute.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/TargetType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ECS_API Attribute() = default;
41 AWS_ECS_API Attribute(Aws::Utils::Json::JsonView jsonValue);
44
45
47
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 Attribute& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
73 template<typename ValueT = Aws::String>
74 Attribute& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
76
78
83 inline TargetType GetTargetType() const { return m_targetType; }
84 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
85 inline void SetTargetType(TargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
86 inline Attribute& WithTargetType(TargetType value) { SetTargetType(value); return *this;}
88
90
94 inline const Aws::String& GetTargetId() const { return m_targetId; }
95 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
96 template<typename TargetIdT = Aws::String>
97 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
98 template<typename TargetIdT = Aws::String>
99 Attribute& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_value;
107 bool m_valueHasBeenSet = false;
108
109 TargetType m_targetType{TargetType::NOT_SET};
110 bool m_targetTypeHasBeenSet = false;
111
112 Aws::String m_targetId;
113 bool m_targetIdHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace ECS
118} // namespace Aws
void SetTargetType(TargetType value)
Definition Attribute.h:85
bool NameHasBeenSet() const
Definition Attribute.h:54
AWS_ECS_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithTargetId(TargetIdT &&value)
Definition Attribute.h:99
AWS_ECS_API Attribute(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(TargetIdT &&value)
Definition Attribute.h:97
const Aws::String & GetTargetId() const
Definition Attribute.h:94
bool TargetTypeHasBeenSet() const
Definition Attribute.h:84
Attribute & WithValue(ValueT &&value)
Definition Attribute.h:74
void SetName(NameT &&value)
Definition Attribute.h:56
Attribute & WithTargetType(TargetType value)
Definition Attribute.h:86
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:83
const Aws::String & GetName() const
Definition Attribute.h:53
bool ValueHasBeenSet() const
Definition Attribute.h:70
bool TargetIdHasBeenSet() const
Definition Attribute.h:95
const Aws::String & GetValue() const
Definition Attribute.h:69
Attribute & WithName(NameT &&value)
Definition Attribute.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue