AWS SDK for C++  1.9.159
AWS SDK for C++
MessageTag.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SESV2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
63  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 
71  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 
79  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 
87  inline MessageTag& WithName(const Aws::String& value) { SetName(value); return *this;}
88 
95  inline MessageTag& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
96 
103  inline MessageTag& WithName(const char* value) { SetName(value); return *this;}
104 
105 
112  inline const Aws::String& GetValue() const{ return m_value; }
113 
120  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
121 
128  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
129 
136  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
137 
144  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
145 
152  inline MessageTag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
153 
160  inline MessageTag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
161 
168  inline MessageTag& WithValue(const char* value) { SetValue(value); return *this;}
169 
170  private:
171 
172  Aws::String m_name;
173  bool m_nameHasBeenSet;
174 
175  Aws::String m_value;
176  bool m_valueHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace SESV2
181 } // namespace Aws
Aws::SESV2::Model::MessageTag::WithValue
MessageTag & WithValue(Aws::String &&value)
Definition: MessageTag.h:160
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::MessageTag::MessageTag
MessageTag()
Aws::SESV2::Model::MessageTag::SetName
void SetName(const char *value)
Definition: MessageTag.h:79
Aws::SESV2::Model::MessageTag::GetName
const Aws::String & GetName() const
Definition: MessageTag.h:47
Aws::SESV2::Model::MessageTag::WithName
MessageTag & WithName(const Aws::String &value)
Definition: MessageTag.h:87
Aws::SESV2::Model::MessageTag::SetValue
void SetValue(const char *value)
Definition: MessageTag.h:144
Aws::SESV2::Model::MessageTag::SetValue
void SetValue(Aws::String &&value)
Definition: MessageTag.h:136
Aws::SESV2::Model::MessageTag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SESV2::Model::MessageTag::SetName
void SetName(Aws::String &&value)
Definition: MessageTag.h:71
Aws::SESV2::Model::MessageTag::MessageTag
MessageTag(Aws::Utils::Json::JsonView jsonValue)
Aws::SESV2::Model::MessageTag::WithName
MessageTag & WithName(Aws::String &&value)
Definition: MessageTag.h:95
Aws::SESV2::Model::MessageTag
Definition: MessageTag.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SESV2::Model::MessageTag::GetValue
const Aws::String & GetValue() const
Definition: MessageTag.h:112
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
SESV2_EXPORTS.h
Aws::SESV2::Model::MessageTag::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MessageTag.h:55
Aws::SESV2::Model::MessageTag::WithValue
MessageTag & WithValue(const Aws::String &value)
Definition: MessageTag.h:152
Aws::SESV2::Model::MessageTag::WithName
MessageTag & WithName(const char *value)
Definition: MessageTag.h:103
Aws::SESV2::Model::MessageTag::operator=
MessageTag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::MessageTag::SetValue
void SetValue(const Aws::String &value)
Definition: MessageTag.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::MessageTag::SetName
void SetName(const Aws::String &value)
Definition: MessageTag.h:63
Aws::SESV2::Model::MessageTag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MessageTag.h:120
Aws::SESV2::Model::MessageTag::WithValue
MessageTag & WithValue(const char *value)
Definition: MessageTag.h:168