AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentDeploymentSpecification.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/ComponentConfigurationUpdate.h>
10#include <aws/greengrassv2/model/ComponentRunWith.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 GreengrassV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GREENGRASSV2_API ComponentDeploymentSpecification() = default;
40 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
48 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
49 template<typename ComponentVersionT = Aws::String>
50 void SetComponentVersion(ComponentVersionT&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::forward<ComponentVersionT>(value); }
51 template<typename ComponentVersionT = Aws::String>
52 ComponentDeploymentSpecification& WithComponentVersion(ComponentVersionT&& value) { SetComponentVersion(std::forward<ComponentVersionT>(value)); return *this;}
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) { m_configurationUpdateHasBeenSet = true; m_configurationUpdate = std::forward<ConfigurationUpdateT>(value); }
71 template<typename ConfigurationUpdateT = ComponentConfigurationUpdate>
72 ComponentDeploymentSpecification& WithConfigurationUpdate(ConfigurationUpdateT&& value) { SetConfigurationUpdate(std::forward<ConfigurationUpdateT>(value)); return *this;}
74
76
85 inline const ComponentRunWith& GetRunWith() const { return m_runWith; }
86 inline bool RunWithHasBeenSet() const { return m_runWithHasBeenSet; }
87 template<typename RunWithT = ComponentRunWith>
88 void SetRunWith(RunWithT&& value) { m_runWithHasBeenSet = true; m_runWith = std::forward<RunWithT>(value); }
89 template<typename RunWithT = ComponentRunWith>
90 ComponentDeploymentSpecification& WithRunWith(RunWithT&& value) { SetRunWith(std::forward<RunWithT>(value)); return *this;}
92 private:
93
94 Aws::String m_componentVersion;
95 bool m_componentVersionHasBeenSet = false;
96
97 ComponentConfigurationUpdate m_configurationUpdate;
98 bool m_configurationUpdateHasBeenSet = false;
99
100 ComponentRunWith m_runWith;
101 bool m_runWithHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GreengrassV2
106} // 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