AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PatchSource.h
1
6#pragma once
7#include <aws/ssm/SSM_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 SSM
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SSM_API PatchSource();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline PatchSource& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline PatchSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline PatchSource& WithName(const char* value) { SetName(value); return *this;}
56
58
63 inline const Aws::Vector<Aws::String>& GetProducts() const{ return m_products; }
64 inline bool ProductsHasBeenSet() const { return m_productsHasBeenSet; }
65 inline void SetProducts(const Aws::Vector<Aws::String>& value) { m_productsHasBeenSet = true; m_products = value; }
66 inline void SetProducts(Aws::Vector<Aws::String>&& value) { m_productsHasBeenSet = true; m_products = std::move(value); }
67 inline PatchSource& WithProducts(const Aws::Vector<Aws::String>& value) { SetProducts(value); return *this;}
68 inline PatchSource& WithProducts(Aws::Vector<Aws::String>&& value) { SetProducts(std::move(value)); return *this;}
69 inline PatchSource& AddProducts(const Aws::String& value) { m_productsHasBeenSet = true; m_products.push_back(value); return *this; }
70 inline PatchSource& AddProducts(Aws::String&& value) { m_productsHasBeenSet = true; m_products.push_back(std::move(value)); return *this; }
71 inline PatchSource& AddProducts(const char* value) { m_productsHasBeenSet = true; m_products.push_back(value); return *this; }
73
75
84 inline const Aws::String& GetConfiguration() const{ return m_configuration; }
85 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
86 inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
87 inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
88 inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
89 inline PatchSource& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
90 inline PatchSource& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
91 inline PatchSource& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_products;
99 bool m_productsHasBeenSet = false;
100
101 Aws::String m_configuration;
102 bool m_configurationHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SSM
107} // namespace Aws
const Aws::Vector< Aws::String > & GetProducts() const
Definition PatchSource.h:63
PatchSource & WithConfiguration(const Aws::String &value)
Definition PatchSource.h:89
void SetName(const char *value)
Definition PatchSource.h:51
PatchSource & WithConfiguration(Aws::String &&value)
Definition PatchSource.h:90
PatchSource & WithProducts(const Aws::Vector< Aws::String > &value)
Definition PatchSource.h:67
PatchSource & AddProducts(const Aws::String &value)
Definition PatchSource.h:69
PatchSource & WithProducts(Aws::Vector< Aws::String > &&value)
Definition PatchSource.h:68
bool ConfigurationHasBeenSet() const
Definition PatchSource.h:85
void SetProducts(Aws::Vector< Aws::String > &&value)
Definition PatchSource.h:66
const Aws::String & GetConfiguration() const
Definition PatchSource.h:84
void SetName(Aws::String &&value)
Definition PatchSource.h:50
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition PatchSource.h:49
void SetConfiguration(Aws::String &&value)
Definition PatchSource.h:87
PatchSource & WithName(Aws::String &&value)
Definition PatchSource.h:53
void SetConfiguration(const Aws::String &value)
Definition PatchSource.h:86
PatchSource & WithName(const Aws::String &value)
Definition PatchSource.h:52
PatchSource & WithConfiguration(const char *value)
Definition PatchSource.h:91
const Aws::String & GetName() const
Definition PatchSource.h:47
AWS_SSM_API PatchSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API PatchSource(Aws::Utils::Json::JsonView jsonValue)
void SetConfiguration(const char *value)
Definition PatchSource.h:88
PatchSource & AddProducts(Aws::String &&value)
Definition PatchSource.h:70
PatchSource & WithName(const char *value)
Definition PatchSource.h:54
void SetProducts(const Aws::Vector< Aws::String > &value)
Definition PatchSource.h:65
PatchSource & AddProducts(const char *value)
Definition PatchSource.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue