AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
49 inline const AttachmentsSourceKey& GetKey() const{ return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 inline void SetKey(const AttachmentsSourceKey& value) { m_keyHasBeenSet = true; m_key = value; }
52 inline void SetKey(AttachmentsSourceKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
53 inline AttachmentsSource& WithKey(const AttachmentsSourceKey& value) { SetKey(value); return *this;}
54 inline AttachmentsSource& WithKey(AttachmentsSourceKey&& value) { SetKey(std::move(value)); return *this;}
56
58
76 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
77 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
78 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
79 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
80 inline AttachmentsSource& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
81 inline AttachmentsSource& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
82 inline AttachmentsSource& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
83 inline AttachmentsSource& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
84 inline AttachmentsSource& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline AttachmentsSource& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline AttachmentsSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline AttachmentsSource& WithName(const char* value) { SetName(value); return *this;}
100 private:
101
103 bool m_keyHasBeenSet = false;
104
106 bool m_valuesHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SSM
114} // namespace Aws
void SetValues(const Aws::Vector< Aws::String > &value)
AttachmentsSource & WithName(const char *value)
AttachmentsSource & AddValues(const char *value)
const Aws::String & GetName() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AttachmentsSource & WithValues(Aws::Vector< Aws::String > &&value)
void SetKey(const AttachmentsSourceKey &value)
void SetValues(Aws::Vector< Aws::String > &&value)
void SetName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetValues() const
void SetKey(AttachmentsSourceKey &&value)
AttachmentsSource & AddValues(Aws::String &&value)
AttachmentsSource & WithKey(AttachmentsSourceKey &&value)
const AttachmentsSourceKey & GetKey() const
AttachmentsSource & WithName(Aws::String &&value)
AttachmentsSource & AddValues(const Aws::String &value)
AttachmentsSource & WithName(const Aws::String &value)
AttachmentsSource & WithValues(const Aws::Vector< Aws::String > &value)
AttachmentsSource & WithKey(const AttachmentsSourceKey &value)
AWS_SSM_API AttachmentsSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &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