AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PatchSource.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSM {
21namespace Model {
22
31 public:
32 AWS_SSM_API PatchSource() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 PatchSource& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<Aws::String>& GetProducts() const { return m_products; }
62 inline bool ProductsHasBeenSet() const { return m_productsHasBeenSet; }
63 template <typename ProductsT = Aws::Vector<Aws::String>>
64 void SetProducts(ProductsT&& value) {
65 m_productsHasBeenSet = true;
66 m_products = std::forward<ProductsT>(value);
67 }
68 template <typename ProductsT = Aws::Vector<Aws::String>>
69 PatchSource& WithProducts(ProductsT&& value) {
70 SetProducts(std::forward<ProductsT>(value));
71 return *this;
72 }
73 template <typename ProductsT = Aws::String>
74 PatchSource& AddProducts(ProductsT&& value) {
75 m_productsHasBeenSet = true;
76 m_products.emplace_back(std::forward<ProductsT>(value));
77 return *this;
78 }
80
82
101 inline const Aws::String& GetConfiguration() const { return m_configuration; }
102 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
103 template <typename ConfigurationT = Aws::String>
104 void SetConfiguration(ConfigurationT&& value) {
105 m_configurationHasBeenSet = true;
106 m_configuration = std::forward<ConfigurationT>(value);
107 }
108 template <typename ConfigurationT = Aws::String>
109 PatchSource& WithConfiguration(ConfigurationT&& value) {
110 SetConfiguration(std::forward<ConfigurationT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_name;
116
117 Aws::Vector<Aws::String> m_products;
118
119 Aws::String m_configuration;
120 bool m_nameHasBeenSet = false;
121 bool m_productsHasBeenSet = false;
122 bool m_configurationHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SSM
127} // namespace Aws
const Aws::Vector< Aws::String > & GetProducts() const
Definition PatchSource.h:61
void SetConfiguration(ConfigurationT &&value)
PatchSource & AddProducts(ProductsT &&value)
Definition PatchSource.h:74
void SetProducts(ProductsT &&value)
Definition PatchSource.h:64
void SetName(NameT &&value)
Definition PatchSource.h:44
PatchSource & WithProducts(ProductsT &&value)
Definition PatchSource.h:69
bool ConfigurationHasBeenSet() const
const Aws::String & GetConfiguration() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition PatchSource.h:41
AWS_SSM_API PatchSource()=default
AWS_SSM_API PatchSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API PatchSource(Aws::Utils::Json::JsonView jsonValue)
PatchSource & WithConfiguration(ConfigurationT &&value)
PatchSource & WithName(NameT &&value)
Definition PatchSource.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue