AWS SDK for C++  1.9.108
AWS SDK for C++
ContainerServiceStateDetail.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
65  inline const ContainerServiceStateDetailCode& GetCode() const{ return m_code; }
66 
90  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
91 
115  inline void SetCode(const ContainerServiceStateDetailCode& value) { m_codeHasBeenSet = true; m_code = value; }
116 
140  inline void SetCode(ContainerServiceStateDetailCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
141 
165  inline ContainerServiceStateDetail& WithCode(const ContainerServiceStateDetailCode& value) { SetCode(value); return *this;}
166 
190  inline ContainerServiceStateDetail& WithCode(ContainerServiceStateDetailCode&& value) { SetCode(std::move(value)); return *this;}
191 
192 
199  inline const Aws::String& GetMessage() const{ return m_message; }
200 
207  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
208 
215  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
216 
223  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
224 
231  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
232 
239  inline ContainerServiceStateDetail& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
240 
247  inline ContainerServiceStateDetail& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
248 
255  inline ContainerServiceStateDetail& WithMessage(const char* value) { SetMessage(value); return *this;}
256 
257  private:
258 
260  bool m_codeHasBeenSet;
261 
262  Aws::String m_message;
263  bool m_messageHasBeenSet;
264  };
265 
266 } // namespace Model
267 } // namespace Lightsail
268 } // namespace Aws
Aws::Lightsail::Model::ContainerServiceStateDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServiceStateDetail::GetMessage
const Aws::String & GetMessage() const
Definition: ContainerServiceStateDetail.h:199
Aws::Lightsail::Model::ContainerServiceStateDetailCode
ContainerServiceStateDetailCode
Definition: ContainerServiceStateDetailCode.h:17
Aws::Lightsail::Model::ContainerServiceStateDetail::SetCode
void SetCode(const ContainerServiceStateDetailCode &value)
Definition: ContainerServiceStateDetail.h:115
Aws::Lightsail::Model::ContainerServiceStateDetail::WithCode
ContainerServiceStateDetail & WithCode(ContainerServiceStateDetailCode &&value)
Definition: ContainerServiceStateDetail.h:190
ContainerServiceStateDetailCode.h
Aws::Lightsail::Model::ContainerServiceStateDetail::SetMessage
void SetMessage(Aws::String &&value)
Definition: ContainerServiceStateDetail.h:223
Aws::Lightsail::Model::ContainerServiceStateDetail::SetMessage
void SetMessage(const Aws::String &value)
Definition: ContainerServiceStateDetail.h:215
Aws::Lightsail::Model::ContainerServiceStateDetail::WithMessage
ContainerServiceStateDetail & WithMessage(const char *value)
Definition: ContainerServiceStateDetail.h:255
Aws::Lightsail::Model::ContainerServiceStateDetail::WithMessage
ContainerServiceStateDetail & WithMessage(const Aws::String &value)
Definition: ContainerServiceStateDetail.h:239
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContainerServiceStateDetail::ContainerServiceStateDetail
ContainerServiceStateDetail()
Aws::Lightsail::Model::ContainerServiceStateDetail::SetCode
void SetCode(ContainerServiceStateDetailCode &&value)
Definition: ContainerServiceStateDetail.h:140
Aws::Lightsail::Model::ContainerServiceStateDetail::operator=
ContainerServiceStateDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerServiceStateDetail::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ContainerServiceStateDetail.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServiceStateDetail::SetMessage
void SetMessage(const char *value)
Definition: ContainerServiceStateDetail.h:231
Aws::Lightsail::Model::ContainerServiceStateDetail::GetCode
const ContainerServiceStateDetailCode & GetCode() const
Definition: ContainerServiceStateDetail.h:65
Aws::Lightsail::Model::ContainerServiceStateDetail::WithCode
ContainerServiceStateDetail & WithCode(const ContainerServiceStateDetailCode &value)
Definition: ContainerServiceStateDetail.h:165
Aws::Lightsail::Model::ContainerServiceStateDetail::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ContainerServiceStateDetail.h:207
Aws::Lightsail::Model::ContainerServiceStateDetail::WithMessage
ContainerServiceStateDetail & WithMessage(Aws::String &&value)
Definition: ContainerServiceStateDetail.h:247
Aws::Lightsail::Model::ContainerServiceStateDetail
Definition: ContainerServiceStateDetail.h:34
Aws::Lightsail::Model::ContainerServiceStateDetail::ContainerServiceStateDetail
ContainerServiceStateDetail(Aws::Utils::Json::JsonView jsonValue)