AWS SDK for C++  1.9.155
AWS SDK for C++
Tag.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 ForecastService
22 {
23 namespace Model
24 {
25 
50  {
51  public:
52  Tag();
56 
57 
62  inline const Aws::String& GetKey() const{ return m_key; }
63 
68  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
69 
74  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
75 
80  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
81 
86  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
87 
92  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
93 
98  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
99 
104  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
105 
106 
111  inline const Aws::String& GetValue() const{ return m_value; }
112 
117  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
118 
123  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
124 
129  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
130 
135  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
136 
141  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
142 
147  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
148 
153  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
154 
155  private:
156 
157  Aws::String m_key;
158  bool m_keyHasBeenSet;
159 
160  Aws::String m_value;
161  bool m_valueHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace ForecastService
166 } // namespace Aws
Aws::ForecastService::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:117
Aws::ForecastService::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:111
Aws::ForecastService::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:153
Aws::ForecastService::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:104
ForecastService_EXPORTS.h
Aws::ForecastService::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:135
Aws::ForecastService::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:147
Aws::ForecastService::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:98
Aws::ForecastService::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:92
Aws::ForecastService::Model::Tag::Tag
Tag()
Aws::ForecastService::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:74
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ForecastService::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:129
Aws::ForecastService::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:141
Aws::ForecastService::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:68
Aws::ForecastService::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:123
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::Tag
Definition: Tag.h:50
Aws::ForecastService::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:86
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:62
Aws::ForecastService::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:80
Aws::ForecastService::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const