AWS SDK for C++  1.9.104
AWS SDK for C++
BucketState.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
47  inline const Aws::String& GetCode() const{ return m_code; }
48 
55  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
56 
63  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
64 
71  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
72 
79  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
80 
87  inline BucketState& WithCode(const Aws::String& value) { SetCode(value); return *this;}
88 
95  inline BucketState& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
96 
103  inline BucketState& WithCode(const char* value) { SetCode(value); return *this;}
104 
105 
109  inline const Aws::String& GetMessage() const{ return m_message; }
110 
114  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
115 
119  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
120 
124  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
125 
129  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
130 
134  inline BucketState& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
135 
139  inline BucketState& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
140 
144  inline BucketState& WithMessage(const char* value) { SetMessage(value); return *this;}
145 
146  private:
147 
148  Aws::String m_code;
149  bool m_codeHasBeenSet;
150 
151  Aws::String m_message;
152  bool m_messageHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace Lightsail
157 } // namespace Aws
Aws::Lightsail::Model::BucketState::SetMessage
void SetMessage(const Aws::String &value)
Definition: BucketState.h:119
Aws::Lightsail::Model::BucketState::WithMessage
BucketState & WithMessage(Aws::String &&value)
Definition: BucketState.h:139
Aws::Lightsail::Model::BucketState::SetMessage
void SetMessage(Aws::String &&value)
Definition: BucketState.h:124
Aws::Lightsail::Model::BucketState
Definition: BucketState.h:33
Aws::Lightsail::Model::BucketState::WithCode
BucketState & WithCode(Aws::String &&value)
Definition: BucketState.h:95
Aws::Lightsail::Model::BucketState::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: BucketState.h:114
Aws::Lightsail::Model::BucketState::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::BucketState::WithCode
BucketState & WithCode(const Aws::String &value)
Definition: BucketState.h:87
Aws::Lightsail::Model::BucketState::WithCode
BucketState & WithCode(const char *value)
Definition: BucketState.h:103
Aws::Lightsail::Model::BucketState::SetCode
void SetCode(const Aws::String &value)
Definition: BucketState.h:63
Aws::Lightsail::Model::BucketState::GetCode
const Aws::String & GetCode() const
Definition: BucketState.h:47
Aws::Lightsail::Model::BucketState::WithMessage
BucketState & WithMessage(const Aws::String &value)
Definition: BucketState.h:134
Aws::Lightsail::Model::BucketState::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: BucketState.h:55
Aws::Lightsail::Model::BucketState::WithMessage
BucketState & WithMessage(const char *value)
Definition: BucketState.h:144
Aws::Lightsail::Model::BucketState::BucketState
BucketState(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::BucketState::GetMessage
const Aws::String & GetMessage() const
Definition: BucketState.h:109
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::BucketState::BucketState
BucketState()
Aws::Lightsail::Model::BucketState::SetMessage
void SetMessage(const char *value)
Definition: BucketState.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::BucketState::operator=
BucketState & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::BucketState::SetCode
void SetCode(Aws::String &&value)
Definition: BucketState.h:71
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::BucketState::SetCode
void SetCode(const char *value)
Definition: BucketState.h:79