AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ComponentDeploymentSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9#include <aws/greengrassv2/model/ComponentConfigurationUpdate.h>
10#include <aws/greengrassv2/model/ComponentRunWith.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GreengrassV2 {
22namespace Model {
23
31 public:
32 AWS_GREENGRASSV2_API ComponentDeploymentSpecification() = default;
35 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
42 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
43 template <typename ComponentVersionT = Aws::String>
44 void SetComponentVersion(ComponentVersionT&& value) {
45 m_componentVersionHasBeenSet = true;
46 m_componentVersion = std::forward<ComponentVersionT>(value);
47 }
48 template <typename ComponentVersionT = Aws::String>
50 SetComponentVersion(std::forward<ComponentVersionT>(value));
51 return *this;
52 }
54
56
67 inline const ComponentConfigurationUpdate& GetConfigurationUpdate() const { return m_configurationUpdate; }
68 inline bool ConfigurationUpdateHasBeenSet() const { return m_configurationUpdateHasBeenSet; }
69 template <typename ConfigurationUpdateT = ComponentConfigurationUpdate>
70 void SetConfigurationUpdate(ConfigurationUpdateT&& value) {
71 m_configurationUpdateHasBeenSet = true;
72 m_configurationUpdate = std::forward<ConfigurationUpdateT>(value);
73 }
74 template <typename ConfigurationUpdateT = ComponentConfigurationUpdate>
76 SetConfigurationUpdate(std::forward<ConfigurationUpdateT>(value));
77 return *this;
78 }
80
82
91 inline const ComponentRunWith& GetRunWith() const { return m_runWith; }
92 inline bool RunWithHasBeenSet() const { return m_runWithHasBeenSet; }
93 template <typename RunWithT = ComponentRunWith>
94 void SetRunWith(RunWithT&& value) {
95 m_runWithHasBeenSet = true;
96 m_runWith = std::forward<RunWithT>(value);
97 }
98 template <typename RunWithT = ComponentRunWith>
100 SetRunWith(std::forward<RunWithT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_componentVersion;
106
107 ComponentConfigurationUpdate m_configurationUpdate;
108
109 ComponentRunWith m_runWith;
110 bool m_componentVersionHasBeenSet = false;
111 bool m_configurationUpdateHasBeenSet = false;
112 bool m_runWithHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace GreengrassV2
117} // namespace Aws
AWS_GREENGRASSV2_API ComponentDeploymentSpecification(Aws::Utils::Json::JsonView jsonValue)
ComponentDeploymentSpecification & WithRunWith(RunWithT &&value)
ComponentDeploymentSpecification & WithConfigurationUpdate(ConfigurationUpdateT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API ComponentDeploymentSpecification()=default
ComponentDeploymentSpecification & WithComponentVersion(ComponentVersionT &&value)
AWS_GREENGRASSV2_API ComponentDeploymentSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue