AWS SDK for C++  1.9.160
AWS SDK for C++
RecordTag.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 ServiceCatalog
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetKey() const{ return m_key; }
45 
49  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 
54  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
55 
59  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
60 
64  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
65 
69  inline RecordTag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline RecordTag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 
79  inline RecordTag& WithKey(const char* value) { SetKey(value); return *this;}
80 
81 
85  inline const Aws::String& GetValue() const{ return m_value; }
86 
90  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 
95  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
96 
100  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
101 
105  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
106 
110  inline RecordTag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
111 
115  inline RecordTag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
116 
120  inline RecordTag& WithValue(const char* value) { SetValue(value); return *this;}
121 
122  private:
123 
124  Aws::String m_key;
125  bool m_keyHasBeenSet;
126 
127  Aws::String m_value;
128  bool m_valueHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ServiceCatalog
133 } // namespace Aws
Aws::ServiceCatalog::Model::RecordTag::WithKey
RecordTag & WithKey(const char *value)
Definition: RecordTag.h:79
Aws::ServiceCatalog::Model::RecordTag::WithKey
RecordTag & WithKey(Aws::String &&value)
Definition: RecordTag.h:74
Aws::ServiceCatalog::Model::RecordTag::GetKey
const Aws::String & GetKey() const
Definition: RecordTag.h:44
Aws::ServiceCatalog::Model::RecordTag::WithValue
RecordTag & WithValue(const Aws::String &value)
Definition: RecordTag.h:110
Aws::ServiceCatalog::Model::RecordTag::SetKey
void SetKey(const Aws::String &value)
Definition: RecordTag.h:54
Aws::ServiceCatalog::Model::RecordTag::SetKey
void SetKey(const char *value)
Definition: RecordTag.h:64
Aws::ServiceCatalog::Model::RecordTag::WithValue
RecordTag & WithValue(Aws::String &&value)
Definition: RecordTag.h:115
Aws::ServiceCatalog::Model::RecordTag::SetValue
void SetValue(const char *value)
Definition: RecordTag.h:105
Aws::ServiceCatalog::Model::RecordTag::WithKey
RecordTag & WithKey(const Aws::String &value)
Definition: RecordTag.h:69
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::RecordTag::SetValue
void SetValue(Aws::String &&value)
Definition: RecordTag.h:100
Aws::ServiceCatalog::Model::RecordTag::WithValue
RecordTag & WithValue(const char *value)
Definition: RecordTag.h:120
Aws::ServiceCatalog::Model::RecordTag::GetValue
const Aws::String & GetValue() const
Definition: RecordTag.h:85
Aws::ServiceCatalog::Model::RecordTag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceCatalog::Model::RecordTag::SetValue
void SetValue(const Aws::String &value)
Definition: RecordTag.h:95
Aws::ServiceCatalog::Model::RecordTag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: RecordTag.h:49
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::RecordTag::RecordTag
RecordTag(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::RecordTag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: RecordTag.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::RecordTag::operator=
RecordTag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::RecordTag
Definition: RecordTag.h:33
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::RecordTag::RecordTag
RecordTag()
Aws::ServiceCatalog::Model::RecordTag::SetKey
void SetKey(Aws::String &&value)
Definition: RecordTag.h:59