AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RunCommandTarget.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_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 CloudWatchEvents
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CLOUDWATCHEVENTS_API RunCommandTarget();
39 AWS_CLOUDWATCHEVENTS_API RunCommandTarget(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVENTS_API RunCommandTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetKey() const{ return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
52 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
53 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
54 inline RunCommandTarget& WithKey(const Aws::String& value) { SetKey(value); return *this;}
55 inline RunCommandTarget& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
56 inline RunCommandTarget& WithKey(const char* value) { SetKey(value); return *this;}
58
60
65 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
66 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
67 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
68 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
69 inline RunCommandTarget& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
70 inline RunCommandTarget& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
71 inline RunCommandTarget& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
72 inline RunCommandTarget& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
73 inline RunCommandTarget& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
75 private:
76
77 Aws::String m_key;
78 bool m_keyHasBeenSet = false;
79
81 bool m_valuesHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CloudWatchEvents
86} // namespace Aws
RunCommandTarget & WithKey(const char *value)
void SetValues(const Aws::Vector< Aws::String > &value)
AWS_CLOUDWATCHEVENTS_API RunCommandTarget()
RunCommandTarget & WithKey(Aws::String &&value)
RunCommandTarget & WithValues(const Aws::Vector< Aws::String > &value)
RunCommandTarget & AddValues(Aws::String &&value)
void SetValues(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetValues() const
AWS_CLOUDWATCHEVENTS_API RunCommandTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
RunCommandTarget & AddValues(const Aws::String &value)
RunCommandTarget & WithValues(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCHEVENTS_API RunCommandTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
RunCommandTarget & WithKey(const Aws::String &value)
RunCommandTarget & AddValues(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue