AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
30 public:
31 AWS_IMAGEBUILDER_API ComponentConfiguration() = default;
32 AWS_IMAGEBUILDER_API ComponentConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetComponentArn() const { return m_componentArn; }
41 inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
42 template <typename ComponentArnT = Aws::String>
43 void SetComponentArn(ComponentArnT&& value) {
44 m_componentArnHasBeenSet = true;
45 m_componentArn = std::forward<ComponentArnT>(value);
46 }
47 template <typename ComponentArnT = Aws::String>
48 ComponentConfiguration& WithComponentArn(ComponentArnT&& value) {
49 SetComponentArn(std::forward<ComponentArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<ComponentParameter>& GetParameters() const { return m_parameters; }
60 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
61 template <typename ParametersT = Aws::Vector<ComponentParameter>>
62 void SetParameters(ParametersT&& value) {
63 m_parametersHasBeenSet = true;
64 m_parameters = std::forward<ParametersT>(value);
65 }
66 template <typename ParametersT = Aws::Vector<ComponentParameter>>
67 ComponentConfiguration& WithParameters(ParametersT&& value) {
68 SetParameters(std::forward<ParametersT>(value));
69 return *this;
70 }
71 template <typename ParametersT = ComponentParameter>
72 ComponentConfiguration& AddParameters(ParametersT&& value) {
73 m_parametersHasBeenSet = true;
74 m_parameters.emplace_back(std::forward<ParametersT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_componentArn;
80
82 bool m_componentArnHasBeenSet = false;
83 bool m_parametersHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace imagebuilder
88} // 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