AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ComponentState.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 ComponentState() = default;
31 AWS_PROTON_API ComponentState(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
41 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
42 template <typename ServiceInstanceNameT = Aws::String>
43 void SetServiceInstanceName(ServiceInstanceNameT&& value) {
44 m_serviceInstanceNameHasBeenSet = true;
45 m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value);
46 }
47 template <typename ServiceInstanceNameT = Aws::String>
48 ComponentState& WithServiceInstanceName(ServiceInstanceNameT&& value) {
49 SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetServiceName() const { return m_serviceName; }
60 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
61 template <typename ServiceNameT = Aws::String>
62 void SetServiceName(ServiceNameT&& value) {
63 m_serviceNameHasBeenSet = true;
64 m_serviceName = std::forward<ServiceNameT>(value);
65 }
66 template <typename ServiceNameT = Aws::String>
67 ComponentState& WithServiceName(ServiceNameT&& value) {
68 SetServiceName(std::forward<ServiceNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetServiceSpec() const { return m_serviceSpec; }
79 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
80 template <typename ServiceSpecT = Aws::String>
81 void SetServiceSpec(ServiceSpecT&& value) {
82 m_serviceSpecHasBeenSet = true;
83 m_serviceSpec = std::forward<ServiceSpecT>(value);
84 }
85 template <typename ServiceSpecT = Aws::String>
86 ComponentState& WithServiceSpec(ServiceSpecT&& value) {
87 SetServiceSpec(std::forward<ServiceSpecT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetTemplateFile() const { return m_templateFile; }
97 inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; }
98 template <typename TemplateFileT = Aws::String>
99 void SetTemplateFile(TemplateFileT&& value) {
100 m_templateFileHasBeenSet = true;
101 m_templateFile = std::forward<TemplateFileT>(value);
102 }
103 template <typename TemplateFileT = Aws::String>
104 ComponentState& WithTemplateFile(TemplateFileT&& value) {
105 SetTemplateFile(std::forward<TemplateFileT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_serviceInstanceName;
111
112 Aws::String m_serviceName;
113
114 Aws::String m_serviceSpec;
115
116 Aws::String m_templateFile;
117 bool m_serviceInstanceNameHasBeenSet = false;
118 bool m_serviceNameHasBeenSet = false;
119 bool m_serviceSpecHasBeenSet = false;
120 bool m_templateFileHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Proton
125} // namespace Aws
void SetServiceName(ServiceNameT &&value)
ComponentState & WithServiceSpec(ServiceSpecT &&value)
const Aws::String & GetTemplateFile() const
ComponentState & WithServiceName(ServiceNameT &&value)
AWS_PROTON_API ComponentState()=default
AWS_PROTON_API ComponentState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceSpec(ServiceSpecT &&value)
void SetTemplateFile(TemplateFileT &&value)
ComponentState & WithTemplateFile(TemplateFileT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServiceSpec() const
const Aws::String & GetServiceName() const
const Aws::String & GetServiceInstanceName() const
AWS_PROTON_API ComponentState(Aws::Utils::Json::JsonView jsonValue)
ComponentState & WithServiceInstanceName(ServiceInstanceNameT &&value)
void SetServiceInstanceName(ServiceInstanceNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue