AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NameServersUpdateState.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/NameServersUpdateStateCode.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
38 {
39 public:
40 AWS_LIGHTSAIL_API NameServersUpdateState();
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
55 inline const NameServersUpdateStateCode& GetCode() const{ return m_code; }
56 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
57 inline void SetCode(const NameServersUpdateStateCode& value) { m_codeHasBeenSet = true; m_code = value; }
58 inline void SetCode(NameServersUpdateStateCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
59 inline NameServersUpdateState& WithCode(const NameServersUpdateStateCode& value) { SetCode(value); return *this;}
60 inline NameServersUpdateState& WithCode(NameServersUpdateStateCode&& value) { SetCode(std::move(value)); return *this;}
62
64
67 inline const Aws::String& GetMessage() const{ return m_message; }
68 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
69 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
70 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
71 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
72 inline NameServersUpdateState& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
73 inline NameServersUpdateState& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
74 inline NameServersUpdateState& WithMessage(const char* value) { SetMessage(value); return *this;}
76 private:
77
79 bool m_codeHasBeenSet = false;
80
81 Aws::String m_message;
82 bool m_messageHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Lightsail
87} // namespace Aws
void SetCode(const NameServersUpdateStateCode &value)
NameServersUpdateState & WithMessage(const char *value)
NameServersUpdateState & WithCode(NameServersUpdateStateCode &&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 & WithMessage(Aws::String &&value)
NameServersUpdateState & WithMessage(const Aws::String &value)
const NameServersUpdateStateCode & GetCode() const
NameServersUpdateState & WithCode(const NameServersUpdateStateCode &value)
void SetCode(NameServersUpdateStateCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue