AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ContainerServiceStateDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/ContainerServiceStateDetailCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
30 public:
31 AWS_LIGHTSAIL_API ContainerServiceStateDetail() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
60 inline ContainerServiceStateDetailCode GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
63 m_codeHasBeenSet = true;
64 m_code = value;
65 }
67 SetCode(value);
68 return *this;
69 }
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) {
83 m_messageHasBeenSet = true;
84 m_message = std::forward<MessageT>(value);
85 }
86 template <typename MessageT = Aws::String>
88 SetMessage(std::forward<MessageT>(value));
89 return *this;
90 }
92 private:
94 bool m_codeHasBeenSet = false;
95
96 Aws::String m_message;
97 bool m_messageHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Lightsail
102} // 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