AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RunCommandTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EventBridge {
21namespace Model {
22
32 public:
33 AWS_EVENTBRIDGE_API RunCommandTarget() = default;
34 AWS_EVENTBRIDGE_API RunCommandTarget(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EVENTBRIDGE_API RunCommandTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetKey() const { return m_key; }
44 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
45 template <typename KeyT = Aws::String>
46 void SetKey(KeyT&& value) {
47 m_keyHasBeenSet = true;
48 m_key = std::forward<KeyT>(value);
49 }
50 template <typename KeyT = Aws::String>
51 RunCommandTarget& WithKey(KeyT&& value) {
52 SetKey(std::forward<KeyT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
64 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
65 template <typename ValuesT = Aws::Vector<Aws::String>>
66 void SetValues(ValuesT&& value) {
67 m_valuesHasBeenSet = true;
68 m_values = std::forward<ValuesT>(value);
69 }
70 template <typename ValuesT = Aws::Vector<Aws::String>>
71 RunCommandTarget& WithValues(ValuesT&& value) {
72 SetValues(std::forward<ValuesT>(value));
73 return *this;
74 }
75 template <typename ValuesT = Aws::String>
76 RunCommandTarget& AddValues(ValuesT&& value) {
77 m_valuesHasBeenSet = true;
78 m_values.emplace_back(std::forward<ValuesT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_key;
84
86 bool m_keyHasBeenSet = false;
87 bool m_valuesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace EventBridge
92} // namespace Aws
RunCommandTarget & WithKey(KeyT &&value)
RunCommandTarget & AddValues(ValuesT &&value)
AWS_EVENTBRIDGE_API RunCommandTarget()=default
AWS_EVENTBRIDGE_API RunCommandTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API RunCommandTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
RunCommandTarget & WithValues(ValuesT &&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