AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM
23{
24namespace Model
25{
26
67 class Target
68 {
69 public:
70 AWS_SSM_API Target();
71 AWS_SSM_API Target(Aws::Utils::Json::JsonView jsonValue);
74
75
77
81 inline const Aws::String& GetKey() const{ return m_key; }
82 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
83 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
84 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
85 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
86 inline Target& WithKey(const Aws::String& value) { SetKey(value); return *this;}
87 inline Target& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
88 inline Target& WithKey(const char* value) { SetKey(value); return *this;}
90
92
100 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
101 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
102 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
103 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
104 inline Target& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
105 inline Target& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
106 inline Target& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
107 inline Target& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
108 inline Target& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
110 private:
111
112 Aws::String m_key;
113 bool m_keyHasBeenSet = false;
114
116 bool m_valuesHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SSM
121} // namespace Aws
Target & WithKey(Aws::String &&value)
Definition Target.h:87
void SetValues(Aws::Vector< Aws::String > &&value)
Definition Target.h:103
Target & AddValues(Aws::String &&value)
Definition Target.h:107
void SetValues(const Aws::Vector< Aws::String > &value)
Definition Target.h:102
Target & WithKey(const char *value)
Definition Target.h:88
bool KeyHasBeenSet() const
Definition Target.h:82
void SetKey(const char *value)
Definition Target.h:85
bool ValuesHasBeenSet() const
Definition Target.h:101
const Aws::String & GetKey() const
Definition Target.h:81
Target & AddValues(const Aws::String &value)
Definition Target.h:106
void SetKey(const Aws::String &value)
Definition Target.h:83
void SetKey(Aws::String &&value)
Definition Target.h:84
Target & AddValues(const char *value)
Definition Target.h:108
AWS_SSM_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Target(Aws::Utils::Json::JsonView jsonValue)
Target & WithValues(Aws::Vector< Aws::String > &&value)
Definition Target.h:105
Target & WithValues(const Aws::Vector< Aws::String > &value)
Definition Target.h:104
Target & WithKey(const Aws::String &value)
Definition Target.h:86
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetValues() const
Definition Target.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue