AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AttachmentsSource.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/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/AttachmentsSourceKey.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
32 public:
33 AWS_SSM_API AttachmentsSource() = default;
37
39
43 inline AttachmentsSourceKey GetKey() const { return m_key; }
44 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
45 inline void SetKey(AttachmentsSourceKey value) {
46 m_keyHasBeenSet = true;
47 m_key = value;
48 }
50 SetKey(value);
51 return *this;
52 }
54
56
74 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
75 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
76 template <typename ValuesT = Aws::Vector<Aws::String>>
77 void SetValues(ValuesT&& value) {
78 m_valuesHasBeenSet = true;
79 m_values = std::forward<ValuesT>(value);
80 }
81 template <typename ValuesT = Aws::Vector<Aws::String>>
82 AttachmentsSource& WithValues(ValuesT&& value) {
83 SetValues(std::forward<ValuesT>(value));
84 return *this;
85 }
86 template <typename ValuesT = Aws::String>
87 AttachmentsSource& AddValues(ValuesT&& value) {
88 m_valuesHasBeenSet = true;
89 m_values.emplace_back(std::forward<ValuesT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
106 AttachmentsSource& WithName(NameT&& value) {
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111 private:
113
115
116 Aws::String m_name;
117 bool m_keyHasBeenSet = false;
118 bool m_valuesHasBeenSet = false;
119 bool m_nameHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SSM
124} // namespace Aws
const Aws::String & GetName() const
AttachmentsSource & WithName(NameT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetValues() const
AttachmentsSource & AddValues(ValuesT &&value)
AttachmentsSource & WithValues(ValuesT &&value)
AWS_SSM_API AttachmentsSource()=default
AWS_SSM_API AttachmentsSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachmentsSource & WithKey(AttachmentsSourceKey value)
AttachmentsSourceKey GetKey() const
void SetKey(AttachmentsSourceKey value)
AWS_SSM_API AttachmentsSource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue