AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
EnvironmentState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/proton/Proton_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Proton {
20namespace Model {
21
29 public:
30 AWS_PROTON_API EnvironmentState() = default;
33 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetSpec() const { return m_spec; }
40 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
41 template <typename SpecT = Aws::String>
42 void SetSpec(SpecT&& value) {
43 m_specHasBeenSet = true;
44 m_spec = std::forward<SpecT>(value);
45 }
46 template <typename SpecT = Aws::String>
47 EnvironmentState& WithSpec(SpecT&& value) {
48 SetSpec(std::forward<SpecT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
59 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
60 template <typename TemplateMajorVersionT = Aws::String>
61 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
62 m_templateMajorVersionHasBeenSet = true;
63 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
64 }
65 template <typename TemplateMajorVersionT = Aws::String>
66 EnvironmentState& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
67 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
78 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
79 template <typename TemplateMinorVersionT = Aws::String>
80 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
81 m_templateMinorVersionHasBeenSet = true;
82 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
83 }
84 template <typename TemplateMinorVersionT = Aws::String>
85 EnvironmentState& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
86 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetTemplateName() const { return m_templateName; }
97 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
98 template <typename TemplateNameT = Aws::String>
99 void SetTemplateName(TemplateNameT&& value) {
100 m_templateNameHasBeenSet = true;
101 m_templateName = std::forward<TemplateNameT>(value);
102 }
103 template <typename TemplateNameT = Aws::String>
104 EnvironmentState& WithTemplateName(TemplateNameT&& value) {
105 SetTemplateName(std::forward<TemplateNameT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_spec;
111
112 Aws::String m_templateMajorVersion;
113
114 Aws::String m_templateMinorVersion;
115
116 Aws::String m_templateName;
117 bool m_specHasBeenSet = false;
118 bool m_templateMajorVersionHasBeenSet = false;
119 bool m_templateMinorVersionHasBeenSet = false;
120 bool m_templateNameHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Proton
125} // namespace Aws
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentState & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
AWS_PROTON_API EnvironmentState(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
AWS_PROTON_API EnvironmentState()=default
EnvironmentState & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::String & GetTemplateMajorVersion() const
const Aws::String & GetTemplateName() const
void SetTemplateName(TemplateNameT &&value)
const Aws::String & GetSpec() const
EnvironmentState & WithSpec(SpecT &&value)
EnvironmentState & WithTemplateName(TemplateNameT &&value)
AWS_PROTON_API EnvironmentState & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTemplateMinorVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue