AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/supplychain/model/InstanceState.h>
10#include <aws/core/utils/DateTime.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 SupplyChain
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SUPPLYCHAIN_API Instance();
37 AWS_SUPPLYCHAIN_API Instance(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SUPPLYCHAIN_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline Instance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
60 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
61 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
62 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
63 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
64 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
65 inline Instance& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
66 inline Instance& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
67 inline Instance& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
69
71
74 inline const InstanceState& GetState() const{ return m_state; }
75 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
76 inline void SetState(const InstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
77 inline void SetState(InstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
78 inline Instance& WithState(const InstanceState& value) { SetState(value); return *this;}
79 inline Instance& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;}
81
83
89 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
90 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
91 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
92 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
93 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
94 inline Instance& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
95 inline Instance& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
96 inline Instance& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
98
100
103 inline const Aws::String& GetWebAppDnsDomain() const{ return m_webAppDnsDomain; }
104 inline bool WebAppDnsDomainHasBeenSet() const { return m_webAppDnsDomainHasBeenSet; }
105 inline void SetWebAppDnsDomain(const Aws::String& value) { m_webAppDnsDomainHasBeenSet = true; m_webAppDnsDomain = value; }
106 inline void SetWebAppDnsDomain(Aws::String&& value) { m_webAppDnsDomainHasBeenSet = true; m_webAppDnsDomain = std::move(value); }
107 inline void SetWebAppDnsDomain(const char* value) { m_webAppDnsDomainHasBeenSet = true; m_webAppDnsDomain.assign(value); }
108 inline Instance& WithWebAppDnsDomain(const Aws::String& value) { SetWebAppDnsDomain(value); return *this;}
109 inline Instance& WithWebAppDnsDomain(Aws::String&& value) { SetWebAppDnsDomain(std::move(value)); return *this;}
110 inline Instance& WithWebAppDnsDomain(const char* value) { SetWebAppDnsDomain(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
118 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
119 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
120 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
121 inline Instance& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
122 inline Instance& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
130 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
131 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
132 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
133 inline Instance& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
134 inline Instance& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
136
138
141 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
142 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
143 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
144 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
145 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
146 inline Instance& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
147 inline Instance& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
148 inline Instance& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
150
152
155 inline const Aws::String& GetInstanceDescription() const{ return m_instanceDescription; }
156 inline bool InstanceDescriptionHasBeenSet() const { return m_instanceDescriptionHasBeenSet; }
157 inline void SetInstanceDescription(const Aws::String& value) { m_instanceDescriptionHasBeenSet = true; m_instanceDescription = value; }
158 inline void SetInstanceDescription(Aws::String&& value) { m_instanceDescriptionHasBeenSet = true; m_instanceDescription = std::move(value); }
159 inline void SetInstanceDescription(const char* value) { m_instanceDescriptionHasBeenSet = true; m_instanceDescription.assign(value); }
160 inline Instance& WithInstanceDescription(const Aws::String& value) { SetInstanceDescription(value); return *this;}
161 inline Instance& WithInstanceDescription(Aws::String&& value) { SetInstanceDescription(std::move(value)); return *this;}
162 inline Instance& WithInstanceDescription(const char* value) { SetInstanceDescription(value); return *this;}
164
166
172 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
173 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
174 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
175 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
176 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
177 inline Instance& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
178 inline Instance& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
179 inline Instance& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
181
183
186 inline double GetVersionNumber() const{ return m_versionNumber; }
187 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
188 inline void SetVersionNumber(double value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
189 inline Instance& WithVersionNumber(double value) { SetVersionNumber(value); return *this;}
191 private:
192
193 Aws::String m_instanceId;
194 bool m_instanceIdHasBeenSet = false;
195
196 Aws::String m_awsAccountId;
197 bool m_awsAccountIdHasBeenSet = false;
198
199 InstanceState m_state;
200 bool m_stateHasBeenSet = false;
201
202 Aws::String m_errorMessage;
203 bool m_errorMessageHasBeenSet = false;
204
205 Aws::String m_webAppDnsDomain;
206 bool m_webAppDnsDomainHasBeenSet = false;
207
208 Aws::Utils::DateTime m_createdTime;
209 bool m_createdTimeHasBeenSet = false;
210
211 Aws::Utils::DateTime m_lastModifiedTime;
212 bool m_lastModifiedTimeHasBeenSet = false;
213
214 Aws::String m_instanceName;
215 bool m_instanceNameHasBeenSet = false;
216
217 Aws::String m_instanceDescription;
218 bool m_instanceDescriptionHasBeenSet = false;
219
220 Aws::String m_kmsKeyArn;
221 bool m_kmsKeyArnHasBeenSet = false;
222
223 double m_versionNumber;
224 bool m_versionNumberHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace SupplyChain
229} // namespace Aws
void SetInstanceName(Aws::String &&value)
Definition Instance.h:144
void SetKmsKeyArn(Aws::String &&value)
Definition Instance.h:175
void SetInstanceId(const char *value)
Definition Instance.h:50
Instance & WithInstanceName(Aws::String &&value)
Definition Instance.h:147
AWS_SUPPLYCHAIN_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Instance & WithKmsKeyArn(const char *value)
Definition Instance.h:179
void SetVersionNumber(double value)
Definition Instance.h:188
Instance & WithInstanceName(const char *value)
Definition Instance.h:148
AWS_SUPPLYCHAIN_API Instance()
AWS_SUPPLYCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorMessage(const Aws::String &value)
Definition Instance.h:91
void SetInstanceDescription(const Aws::String &value)
Definition Instance.h:157
const Aws::String & GetInstanceName() const
Definition Instance.h:141
const Aws::String & GetErrorMessage() const
Definition Instance.h:89
Instance & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition Instance.h:122
Instance & WithWebAppDnsDomain(Aws::String &&value)
Definition Instance.h:109
Instance & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Instance.h:133
void SetState(const InstanceState &value)
Definition Instance.h:76
void SetAwsAccountId(const char *value)
Definition Instance.h:64
Instance & WithInstanceDescription(const Aws::String &value)
Definition Instance.h:160
const Aws::String & GetInstanceDescription() const
Definition Instance.h:155
void SetWebAppDnsDomain(const Aws::String &value)
Definition Instance.h:105
void SetErrorMessage(Aws::String &&value)
Definition Instance.h:92
void SetAwsAccountId(const Aws::String &value)
Definition Instance.h:62
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Instance.h:117
void SetInstanceDescription(const char *value)
Definition Instance.h:159
void SetInstanceName(const char *value)
Definition Instance.h:145
void SetState(InstanceState &&value)
Definition Instance.h:77
void SetKmsKeyArn(const Aws::String &value)
Definition Instance.h:174
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition Instance.h:120
Instance & WithState(const InstanceState &value)
Definition Instance.h:78
Instance & WithAwsAccountId(Aws::String &&value)
Definition Instance.h:66
Instance & WithState(InstanceState &&value)
Definition Instance.h:79
const Aws::String & GetAwsAccountId() const
Definition Instance.h:60
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Instance.h:131
Instance & WithErrorMessage(Aws::String &&value)
Definition Instance.h:95
const Aws::String & GetInstanceId() const
Definition Instance.h:46
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Instance.h:132
Instance & WithWebAppDnsDomain(const char *value)
Definition Instance.h:110
bool LastModifiedTimeHasBeenSet() const
Definition Instance.h:130
Instance & WithInstanceDescription(Aws::String &&value)
Definition Instance.h:161
const Aws::String & GetWebAppDnsDomain() const
Definition Instance.h:103
void SetWebAppDnsDomain(Aws::String &&value)
Definition Instance.h:106
void SetErrorMessage(const char *value)
Definition Instance.h:93
Instance & WithAwsAccountId(const Aws::String &value)
Definition Instance.h:65
Instance & WithInstanceId(const Aws::String &value)
Definition Instance.h:51
Instance & WithWebAppDnsDomain(const Aws::String &value)
Definition Instance.h:108
Instance & WithInstanceId(const char *value)
Definition Instance.h:53
const InstanceState & GetState() const
Definition Instance.h:74
void SetInstanceName(const Aws::String &value)
Definition Instance.h:143
bool InstanceDescriptionHasBeenSet() const
Definition Instance.h:156
Instance & WithAwsAccountId(const char *value)
Definition Instance.h:67
Instance & WithKmsKeyArn(const Aws::String &value)
Definition Instance.h:177
void SetKmsKeyArn(const char *value)
Definition Instance.h:176
void SetInstanceId(const Aws::String &value)
Definition Instance.h:48
Instance & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition Instance.h:121
Instance & WithKmsKeyArn(Aws::String &&value)
Definition Instance.h:178
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition Instance.h:119
AWS_SUPPLYCHAIN_API Instance(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceDescription(Aws::String &&value)
Definition Instance.h:158
Instance & WithErrorMessage(const Aws::String &value)
Definition Instance.h:94
const Aws::String & GetKmsKeyArn() const
Definition Instance.h:172
Instance & WithVersionNumber(double value)
Definition Instance.h:189
Instance & WithInstanceDescription(const char *value)
Definition Instance.h:162
Instance & WithInstanceName(const Aws::String &value)
Definition Instance.h:146
Instance & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Instance.h:134
void SetAwsAccountId(Aws::String &&value)
Definition Instance.h:63
void SetWebAppDnsDomain(const char *value)
Definition Instance.h:107
Instance & WithErrorMessage(const char *value)
Definition Instance.h:96
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Instance.h:129
Instance & WithInstanceId(Aws::String &&value)
Definition Instance.h:52
void SetInstanceId(Aws::String &&value)
Definition Instance.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue