AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline Attribute& WithName(const char* value) { SetName(value); return *this;}
62
64
71 inline const Aws::String& GetValue() const{ return m_value; }
72 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
73 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
74 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
75 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
76 inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
77 inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
78 inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
80
82
87 inline const TargetType& GetTargetType() const{ return m_targetType; }
88 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
89 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
90 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
91 inline Attribute& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
92 inline Attribute& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
94
96
100 inline const Aws::String& GetTargetId() const{ return m_targetId; }
101 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
102 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
103 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
104 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
105 inline Attribute& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
106 inline Attribute& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
107 inline Attribute& WithTargetId(const char* value) { SetTargetId(value); return *this;}
109 private:
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 Aws::String m_value;
115 bool m_valueHasBeenSet = false;
116
117 TargetType m_targetType;
118 bool m_targetTypeHasBeenSet = false;
119
120 Aws::String m_targetId;
121 bool m_targetIdHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ECS
126} // namespace Aws
bool NameHasBeenSet() const
Definition Attribute.h:54
Attribute & WithName(const Aws::String &value)
Definition Attribute.h:58
AWS_ECS_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithTargetId(const char *value)
Definition Attribute.h:107
void SetValue(const char *value)
Definition Attribute.h:75
AWS_ECS_API Attribute(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition Attribute.h:57
const Aws::String & GetTargetId() const
Definition Attribute.h:100
bool TargetTypeHasBeenSet() const
Definition Attribute.h:88
Attribute & WithName(const char *value)
Definition Attribute.h:60
void SetValue(Aws::String &&value)
Definition Attribute.h:74
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetId(Aws::String &&value)
Definition Attribute.h:103
Attribute & WithTargetType(const TargetType &value)
Definition Attribute.h:91
Attribute & WithValue(Aws::String &&value)
Definition Attribute.h:77
void SetTargetType(TargetType &&value)
Definition Attribute.h:90
Attribute & WithTargetId(const Aws::String &value)
Definition Attribute.h:105
void SetTargetId(const Aws::String &value)
Definition Attribute.h:102
Attribute & WithValue(const Aws::String &value)
Definition Attribute.h:76
void SetTargetType(const TargetType &value)
Definition Attribute.h:89
const Aws::String & GetName() const
Definition Attribute.h:53
const TargetType & GetTargetType() const
Definition Attribute.h:87
void SetValue(const Aws::String &value)
Definition Attribute.h:73
void SetName(const Aws::String &value)
Definition Attribute.h:55
bool ValueHasBeenSet() const
Definition Attribute.h:72
bool TargetIdHasBeenSet() const
Definition Attribute.h:101
const Aws::String & GetValue() const
Definition Attribute.h:71
Attribute & WithTargetType(TargetType &&value)
Definition Attribute.h:92
Attribute & WithName(Aws::String &&value)
Definition Attribute.h:59
Attribute & WithValue(const char *value)
Definition Attribute.h:78
void SetName(Aws::String &&value)
Definition Attribute.h:56
Attribute & WithTargetId(Aws::String &&value)
Definition Attribute.h:106
void SetTargetId(const char *value)
Definition Attribute.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue