AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
ComponentConfiguration.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/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/ComponentParameter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder {
22namespace Model {
23
33 public:
34 AWS_IMAGEBUILDER_API ComponentConfiguration() = default;
35 AWS_IMAGEBUILDER_API ComponentConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetComponentArn() const { return m_componentArn; }
46 inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
47 template <typename ComponentArnT = Aws::String>
48 void SetComponentArn(ComponentArnT&& value) {
49 m_componentArnHasBeenSet = true;
50 m_componentArn = std::forward<ComponentArnT>(value);
51 }
52 template <typename ComponentArnT = Aws::String>
53 ComponentConfiguration& WithComponentArn(ComponentArnT&& value) {
54 SetComponentArn(std::forward<ComponentArnT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Vector<ComponentParameter>& GetParameters() const { return m_parameters; }
67 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
68 template <typename ParametersT = Aws::Vector<ComponentParameter>>
69 void SetParameters(ParametersT&& value) {
70 m_parametersHasBeenSet = true;
71 m_parameters = std::forward<ParametersT>(value);
72 }
73 template <typename ParametersT = Aws::Vector<ComponentParameter>>
74 ComponentConfiguration& WithParameters(ParametersT&& value) {
75 SetParameters(std::forward<ParametersT>(value));
76 return *this;
77 }
78 template <typename ParametersT = ComponentParameter>
79 ComponentConfiguration& AddParameters(ParametersT&& value) {
80 m_parametersHasBeenSet = true;
81 m_parameters.emplace_back(std::forward<ParametersT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_componentArn;
87
89 bool m_componentArnHasBeenSet = false;
90 bool m_parametersHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace imagebuilder
95} // namespace Aws
ComponentConfiguration & AddParameters(ParametersT &&value)
AWS_IMAGEBUILDER_API ComponentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ComponentParameter > & GetParameters() const
AWS_IMAGEBUILDER_API ComponentConfiguration(Aws::Utils::Json::JsonView jsonValue)
ComponentConfiguration & WithParameters(ParametersT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API ComponentConfiguration()=default
ComponentConfiguration & WithComponentArn(ComponentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue