AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
NameServersUpdateState.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/NameServersUpdateStateCode.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
34 public:
35 AWS_LIGHTSAIL_API NameServersUpdateState() = default;
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
49 inline NameServersUpdateStateCode GetCode() const { return m_code; }
50 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 m_codeHasBeenSet = true;
53 m_code = value;
54 }
56 SetCode(value);
57 return *this;
58 }
60
62
65 inline const Aws::String& GetMessage() const { return m_message; }
66 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
67 template <typename MessageT = Aws::String>
68 void SetMessage(MessageT&& value) {
69 m_messageHasBeenSet = true;
70 m_message = std::forward<MessageT>(value);
71 }
72 template <typename MessageT = Aws::String>
74 SetMessage(std::forward<MessageT>(value));
75 return *this;
76 }
78 private:
80 bool m_codeHasBeenSet = false;
81
82 Aws::String m_message;
83 bool m_messageHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Lightsail
88} // namespace Aws
NameServersUpdateState & WithMessage(MessageT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API NameServersUpdateState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API NameServersUpdateState(Aws::Utils::Json::JsonView jsonValue)
NameServersUpdateState & WithCode(NameServersUpdateStateCode value)
AWS_LIGHTSAIL_API NameServersUpdateState()=default
void SetCode(NameServersUpdateStateCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue