AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentState.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PROTON_API ComponentState();
36 AWS_PROTON_API ComponentState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; }
47 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
48 inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; }
49 inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); }
50 inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); }
51 inline ComponentState& WithServiceInstanceName(const Aws::String& value) { SetServiceInstanceName(value); return *this;}
52 inline ComponentState& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;}
53 inline ComponentState& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;}
55
57
61 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
62 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
63 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
64 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
65 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
66 inline ComponentState& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
67 inline ComponentState& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
68 inline ComponentState& WithServiceName(const char* value) { SetServiceName(value); return *this;}
70
72
76 inline const Aws::String& GetServiceSpec() const{ return m_serviceSpec; }
77 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
78 inline void SetServiceSpec(const Aws::String& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = value; }
79 inline void SetServiceSpec(Aws::String&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::move(value); }
80 inline void SetServiceSpec(const char* value) { m_serviceSpecHasBeenSet = true; m_serviceSpec.assign(value); }
81 inline ComponentState& WithServiceSpec(const Aws::String& value) { SetServiceSpec(value); return *this;}
82 inline ComponentState& WithServiceSpec(Aws::String&& value) { SetServiceSpec(std::move(value)); return *this;}
83 inline ComponentState& WithServiceSpec(const char* value) { SetServiceSpec(value); return *this;}
85
87
90 inline const Aws::String& GetTemplateFile() const{ return m_templateFile; }
91 inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; }
92 inline void SetTemplateFile(const Aws::String& value) { m_templateFileHasBeenSet = true; m_templateFile = value; }
93 inline void SetTemplateFile(Aws::String&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::move(value); }
94 inline void SetTemplateFile(const char* value) { m_templateFileHasBeenSet = true; m_templateFile.assign(value); }
95 inline ComponentState& WithTemplateFile(const Aws::String& value) { SetTemplateFile(value); return *this;}
96 inline ComponentState& WithTemplateFile(Aws::String&& value) { SetTemplateFile(std::move(value)); return *this;}
97 inline ComponentState& WithTemplateFile(const char* value) { SetTemplateFile(value); return *this;}
99 private:
100
101 Aws::String m_serviceInstanceName;
102 bool m_serviceInstanceNameHasBeenSet = false;
103
104 Aws::String m_serviceName;
105 bool m_serviceNameHasBeenSet = false;
106
107 Aws::String m_serviceSpec;
108 bool m_serviceSpecHasBeenSet = false;
109
110 Aws::String m_templateFile;
111 bool m_templateFileHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Proton
116} // namespace Aws
void SetTemplateFile(const char *value)
const Aws::String & GetTemplateFile() const
ComponentState & WithServiceInstanceName(Aws::String &&value)
AWS_PROTON_API ComponentState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceSpec(Aws::String &&value)
ComponentState & WithServiceName(const char *value)
ComponentState & WithServiceSpec(Aws::String &&value)
ComponentState & WithTemplateFile(const Aws::String &value)
void SetServiceSpec(const Aws::String &value)
void SetTemplateFile(const Aws::String &value)
ComponentState & WithServiceInstanceName(const Aws::String &value)
ComponentState & WithTemplateFile(const char *value)
void SetServiceInstanceName(const char *value)
ComponentState & WithTemplateFile(Aws::String &&value)
ComponentState & WithServiceName(Aws::String &&value)
void SetTemplateFile(Aws::String &&value)
void SetServiceInstanceName(const Aws::String &value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServiceName(const Aws::String &value)
ComponentState & WithServiceInstanceName(const char *value)
void SetServiceName(Aws::String &&value)
const Aws::String & GetServiceSpec() const
void SetServiceName(const char *value)
const Aws::String & GetServiceName() const
void SetServiceInstanceName(Aws::String &&value)
const Aws::String & GetServiceInstanceName() const
AWS_PROTON_API ComponentState(Aws::Utils::Json::JsonView jsonValue)
ComponentState & WithServiceName(const Aws::String &value)
void SetServiceSpec(const char *value)
ComponentState & WithServiceSpec(const Aws::String &value)
ComponentState & WithServiceSpec(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue