AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ComponentConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/model/ComponentParameter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IMAGEBUILDER_API ComponentConfiguration() = default;
37 AWS_IMAGEBUILDER_API ComponentConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetComponentArn() const { return m_componentArn; }
47 inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
48 template<typename ComponentArnT = Aws::String>
49 void SetComponentArn(ComponentArnT&& value) { m_componentArnHasBeenSet = true; m_componentArn = std::forward<ComponentArnT>(value); }
50 template<typename ComponentArnT = Aws::String>
51 ComponentConfiguration& WithComponentArn(ComponentArnT&& value) { SetComponentArn(std::forward<ComponentArnT>(value)); return *this;}
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) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
63 template<typename ParametersT = Aws::Vector<ComponentParameter>>
64 ComponentConfiguration& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
65 template<typename ParametersT = ComponentParameter>
66 ComponentConfiguration& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
68 private:
69
70 Aws::String m_componentArn;
71 bool m_componentArnHasBeenSet = false;
72
74 bool m_parametersHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace imagebuilder
79} // 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