AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BucketState.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LIGHTSAIL_API BucketState();
36 AWS_LIGHTSAIL_API BucketState(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API BucketState& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetCode() const{ return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
51 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
53 inline BucketState& WithCode(const Aws::String& value) { SetCode(value); return *this;}
54 inline BucketState& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
55 inline BucketState& WithCode(const char* value) { SetCode(value); return *this;}
57
59
62 inline const Aws::String& GetMessage() const{ return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
65 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
66 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
67 inline BucketState& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
68 inline BucketState& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
69 inline BucketState& WithMessage(const char* value) { SetMessage(value); return *this;}
71 private:
72
73 Aws::String m_code;
74 bool m_codeHasBeenSet = false;
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Lightsail
82} // namespace Aws
void SetMessage(const Aws::String &value)
Definition BucketState.h:64
BucketState & WithMessage(const Aws::String &value)
Definition BucketState.h:67
const Aws::String & GetMessage() const
Definition BucketState.h:62
void SetMessage(Aws::String &&value)
Definition BucketState.h:65
BucketState & WithCode(const char *value)
Definition BucketState.h:55
BucketState & WithCode(const Aws::String &value)
Definition BucketState.h:53
void SetCode(const char *value)
Definition BucketState.h:52
BucketState & WithCode(Aws::String &&value)
Definition BucketState.h:54
BucketState & WithMessage(const char *value)
Definition BucketState.h:69
void SetMessage(const char *value)
Definition BucketState.h:66
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(const Aws::String &value)
Definition BucketState.h:50
void SetCode(Aws::String &&value)
Definition BucketState.h:51
BucketState & WithMessage(Aws::String &&value)
Definition BucketState.h:68
const Aws::String & GetCode() const
Definition BucketState.h:48
AWS_LIGHTSAIL_API BucketState(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API BucketState & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue