AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerServiceStateDetail.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/ContainerServiceStateDetailCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LIGHTSAIL_API ContainerServiceStateDetail();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
66 inline const ContainerServiceStateDetailCode& GetCode() const{ return m_code; }
67 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
68 inline void SetCode(const ContainerServiceStateDetailCode& value) { m_codeHasBeenSet = true; m_code = value; }
69 inline void SetCode(ContainerServiceStateDetailCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
70 inline ContainerServiceStateDetail& WithCode(const ContainerServiceStateDetailCode& value) { SetCode(value); return *this;}
71 inline ContainerServiceStateDetail& WithCode(ContainerServiceStateDetailCode&& value) { SetCode(std::move(value)); return *this;}
73
75
81 inline const Aws::String& GetMessage() const{ return m_message; }
82 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
84 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
85 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
86 inline ContainerServiceStateDetail& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
87 inline ContainerServiceStateDetail& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
88 inline ContainerServiceStateDetail& WithMessage(const char* value) { SetMessage(value); return *this;}
90 private:
91
93 bool m_codeHasBeenSet = false;
94
95 Aws::String m_message;
96 bool m_messageHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Lightsail
101} // namespace Aws
ContainerServiceStateDetail & WithMessage(Aws::String &&value)
const ContainerServiceStateDetailCode & GetCode() const
void SetCode(ContainerServiceStateDetailCode &&value)
void SetCode(const ContainerServiceStateDetailCode &value)
AWS_LIGHTSAIL_API ContainerServiceStateDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceStateDetail & WithCode(const ContainerServiceStateDetailCode &value)
ContainerServiceStateDetail & WithMessage(const Aws::String &value)
ContainerServiceStateDetail & WithMessage(const char *value)
AWS_LIGHTSAIL_API ContainerServiceStateDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceStateDetail & WithCode(ContainerServiceStateDetailCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue