AWS SDK for C++  1.8.95
AWS SDK for C++
Target.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
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 SSM
23 {
24 namespace Model
25 {
26 
68  {
69  public:
70  Target();
72  Target& operator=(Aws::Utils::Json::JsonView jsonValue);
73  Aws::Utils::Json::JsonValue Jsonize() const;
74 
75 
80  inline const Aws::String& GetKey() const{ return m_key; }
81 
86  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
87 
92  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
93 
98  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
99 
104  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
105 
110  inline Target& WithKey(const Aws::String& value) { SetKey(value); return *this;}
111 
116  inline Target& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
117 
122  inline Target& WithKey(const char* value) { SetKey(value); return *this;}
123 
124 
131  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
132 
139  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
140 
147  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
148 
155  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
156 
163  inline Target& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
164 
171  inline Target& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
172 
179  inline Target& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
180 
187  inline Target& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
188 
195  inline Target& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
196 
197  private:
198 
199  Aws::String m_key;
200  bool m_keyHasBeenSet;
201 
202  Aws::Vector<Aws::String> m_values;
203  bool m_valuesHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace SSM
208 } // namespace Aws
Target & AddValues(const char *value)
Definition: Target.h:195
const Aws::String & GetKey() const
Definition: Target.h:80
Target & WithKey(const Aws::String &value)
Definition: Target.h:110
Target & AddValues(Aws::String &&value)
Definition: Target.h:187
Target & AddValues(const Aws::String &value)
Definition: Target.h:179
Target & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Target.h:163
Target & WithKey(const char *value)
Definition: Target.h:122
void SetKey(Aws::String &&value)
Definition: Target.h:98
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< Aws::String > & GetValues() const
Definition: Target.h:131
bool ValuesHasBeenSet() const
Definition: Target.h:139
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Target.h:147
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Target.h:155
void SetKey(const char *value)
Definition: Target.h:104
bool KeyHasBeenSet() const
Definition: Target.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Target & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Target.h:171
void SetKey(const Aws::String &value)
Definition: Target.h:92
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Target & WithKey(Aws::String &&value)
Definition: Target.h:116