AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 PatchSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_productsHasBeenSet = true; m_products = std::forward<ProductsT>(value); }
65 template<typename ProductsT = Aws::Vector<Aws::String>>
66 PatchSource& WithProducts(ProductsT&& value) { SetProducts(std::forward<ProductsT>(value)); return *this;}
67 template<typename ProductsT = Aws::String>
68 PatchSource& AddProducts(ProductsT&& value) { m_productsHasBeenSet = true; m_products.emplace_back(std::forward<ProductsT>(value)); return *this; }
70
72
81 inline const Aws::String& GetConfiguration() const { return m_configuration; }
82 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
83 template<typename ConfigurationT = Aws::String>
84 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
85 template<typename ConfigurationT = Aws::String>
86 PatchSource& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
88 private:
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_products;
94 bool m_productsHasBeenSet = false;
95
96 Aws::String m_configuration;
97 bool m_configurationHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SSM
102} // namespace Aws
const Aws::Vector< Aws::String > & GetProducts() const
Definition PatchSource.h:61
void SetConfiguration(ConfigurationT &&value)
Definition PatchSource.h:84
PatchSource & AddProducts(ProductsT &&value)
Definition PatchSource.h:68
void SetProducts(ProductsT &&value)
Definition PatchSource.h:64
void SetName(NameT &&value)
Definition PatchSource.h:50
PatchSource & WithProducts(ProductsT &&value)
Definition PatchSource.h:66
bool ConfigurationHasBeenSet() const
Definition PatchSource.h:82
const Aws::String & GetConfiguration() const
Definition PatchSource.h:81
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition PatchSource.h:47
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)
Definition PatchSource.h:86
PatchSource & WithName(NameT &&value)
Definition PatchSource.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue