AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AttachmentsSource.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/AttachmentsSourceKey.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SSM_API AttachmentsSource() = default;
42
43
45
49 inline AttachmentsSourceKey GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 inline void SetKey(AttachmentsSourceKey value) { m_keyHasBeenSet = true; m_key = value; }
52 inline AttachmentsSource& WithKey(AttachmentsSourceKey value) { SetKey(value); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
78 template<typename ValuesT = Aws::Vector<Aws::String>>
79 AttachmentsSource& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
80 template<typename ValuesT = Aws::String>
81 AttachmentsSource& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
83
85
88 inline const Aws::String& GetName() const { return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 template<typename NameT = Aws::String>
91 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
92 template<typename NameT = Aws::String>
93 AttachmentsSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
95 private:
96
98 bool m_keyHasBeenSet = false;
99
101 bool m_valuesHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SSM
109} // 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