AWS SDK for C++  1.9.108
AWS SDK for C++
TagOptionSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ServiceCatalog
23 {
24 namespace Model
25 {
26 
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 TagOptionSummary& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline TagOptionSummary& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 
79  inline TagOptionSummary& WithKey(const char* value) { SetKey(value); return *this;}
80 
81 
85  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
86 
90  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
91 
95  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
96 
100  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
101 
105  inline TagOptionSummary& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
106 
110  inline TagOptionSummary& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
111 
115  inline TagOptionSummary& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
116 
120  inline TagOptionSummary& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
121 
125  inline TagOptionSummary& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::String m_key;
130  bool m_keyHasBeenSet;
131 
132  Aws::Vector<Aws::String> m_values;
133  bool m_valuesHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace ServiceCatalog
138 } // namespace Aws
Aws::ServiceCatalog::Model::TagOptionSummary::AddValues
TagOptionSummary & AddValues(const char *value)
Definition: TagOptionSummary.h:125
Aws::ServiceCatalog::Model::TagOptionSummary::SetKey
void SetKey(const Aws::String &value)
Definition: TagOptionSummary.h:54
Aws::ServiceCatalog::Model::TagOptionSummary
Definition: TagOptionSummary.h:33
Aws::ServiceCatalog::Model::TagOptionSummary::TagOptionSummary
TagOptionSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceCatalog::Model::TagOptionSummary::TagOptionSummary
TagOptionSummary()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
AWSVector.h
Aws::ServiceCatalog::Model::TagOptionSummary::AddValues
TagOptionSummary & AddValues(const Aws::String &value)
Definition: TagOptionSummary.h:115
Aws::ServiceCatalog::Model::TagOptionSummary::SetKey
void SetKey(Aws::String &&value)
Definition: TagOptionSummary.h:59
Aws::ServiceCatalog::Model::TagOptionSummary::WithKey
TagOptionSummary & WithKey(const Aws::String &value)
Definition: TagOptionSummary.h:69
Aws::ServiceCatalog::Model::TagOptionSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceCatalog::Model::TagOptionSummary::AddValues
TagOptionSummary & AddValues(Aws::String &&value)
Definition: TagOptionSummary.h:120
Aws::ServiceCatalog::Model::TagOptionSummary::GetKey
const Aws::String & GetKey() const
Definition: TagOptionSummary.h:44
Aws::ServiceCatalog::Model::TagOptionSummary::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: TagOptionSummary.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceCatalog::Model::TagOptionSummary::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: TagOptionSummary.h:95
Aws::ServiceCatalog::Model::TagOptionSummary::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: TagOptionSummary.h:90
Aws::ServiceCatalog::Model::TagOptionSummary::SetKey
void SetKey(const char *value)
Definition: TagOptionSummary.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::TagOptionSummary::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagOptionSummary.h:49
Aws::ServiceCatalog::Model::TagOptionSummary::WithKey
TagOptionSummary & WithKey(const char *value)
Definition: TagOptionSummary.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::TagOptionSummary::WithValues
TagOptionSummary & WithValues(Aws::Vector< Aws::String > &&value)
Definition: TagOptionSummary.h:110
Aws::ServiceCatalog::Model::TagOptionSummary::WithValues
TagOptionSummary & WithValues(const Aws::Vector< Aws::String > &value)
Definition: TagOptionSummary.h:105
Aws::ServiceCatalog::Model::TagOptionSummary::operator=
TagOptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::TagOptionSummary::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: TagOptionSummary.h:100
Aws::ServiceCatalog::Model::TagOptionSummary::WithKey
TagOptionSummary & WithKey(Aws::String &&value)
Definition: TagOptionSummary.h:74