AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
66 inline ContainerServiceStateDetailCode GetCode() const { return m_code; }
67 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
68 inline void SetCode(ContainerServiceStateDetailCode value) { m_codeHasBeenSet = true; m_code = value; }
71
73
79 inline const Aws::String& GetMessage() const { return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 template<typename MessageT = Aws::String>
82 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
83 template<typename MessageT = Aws::String>
84 ContainerServiceStateDetail& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
86 private:
87
89 bool m_codeHasBeenSet = false;
90
91 Aws::String m_message;
92 bool m_messageHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Lightsail
97} // namespace Aws
AWS_LIGHTSAIL_API ContainerServiceStateDetail(Aws::Utils::Json::JsonView jsonValue)
void SetCode(ContainerServiceStateDetailCode value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceStateDetail & WithMessage(MessageT &&value)
AWS_LIGHTSAIL_API ContainerServiceStateDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceStateDetail & WithCode(ContainerServiceStateDetailCode value)
AWS_LIGHTSAIL_API ContainerServiceStateDetail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue