AWS SDK for C++  1.9.108
AWS SDK for C++
Warning.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 ElasticTranscoder
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetCode() const{ return m_code; }
48 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
57  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
58 
62  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 
67  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
68 
72  inline Warning& WithCode(const Aws::String& value) { SetCode(value); return *this;}
73 
77  inline Warning& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
78 
82  inline Warning& WithCode(const char* value) { SetCode(value); return *this;}
83 
84 
90  inline const Aws::String& GetMessage() const{ return m_message; }
91 
97  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
98 
104  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
105 
111  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
112 
118  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
119 
125  inline Warning& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
126 
132  inline Warning& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
133 
139  inline Warning& WithMessage(const char* value) { SetMessage(value); return *this;}
140 
141  private:
142 
143  Aws::String m_code;
144  bool m_codeHasBeenSet;
145 
146  Aws::String m_message;
147  bool m_messageHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace ElasticTranscoder
152 } // namespace Aws
Aws::ElasticTranscoder::Model::Warning::Warning
Warning()
Aws::ElasticTranscoder::Model::Warning::WithCode
Warning & WithCode(Aws::String &&value)
Definition: Warning.h:77
Aws::ElasticTranscoder::Model::Warning::SetCode
void SetCode(Aws::String &&value)
Definition: Warning.h:62
Aws::ElasticTranscoder::Model::Warning::GetCode
const Aws::String & GetCode() const
Definition: Warning.h:47
AWS_ELASTICTRANSCODER_API
#define AWS_ELASTICTRANSCODER_API
Definition: ElasticTranscoder_EXPORTS.h:28
Aws::ElasticTranscoder::Model::Warning::WithCode
Warning & WithCode(const char *value)
Definition: Warning.h:82
Aws::ElasticTranscoder::Model::Warning::WithMessage
Warning & WithMessage(const char *value)
Definition: Warning.h:139
Aws::ElasticTranscoder::Model::Warning::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: Warning.h:52
Aws::ElasticTranscoder::Model::Warning::SetCode
void SetCode(const Aws::String &value)
Definition: Warning.h:57
Aws::ElasticTranscoder::Model::Warning::SetMessage
void SetMessage(const Aws::String &value)
Definition: Warning.h:104
Aws::ElasticTranscoder::Model::Warning
Definition: Warning.h:36
Aws::ElasticTranscoder::Model::Warning::GetMessage
const Aws::String & GetMessage() const
Definition: Warning.h:90
Aws::ElasticTranscoder::Model::Warning::SetMessage
void SetMessage(Aws::String &&value)
Definition: Warning.h:111
Aws::ElasticTranscoder::Model::Warning::WithCode
Warning & WithCode(const Aws::String &value)
Definition: Warning.h:72
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticTranscoder::Model::Warning::WithMessage
Warning & WithMessage(const Aws::String &value)
Definition: Warning.h:125
Aws::ElasticTranscoder::Model::Warning::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticTranscoder::Model::Warning::Warning
Warning(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticTranscoder::Model::Warning::operator=
Warning & 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::ElasticTranscoder::Model::Warning::SetMessage
void SetMessage(const char *value)
Definition: Warning.h:118
Aws::ElasticTranscoder::Model::Warning::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Warning.h:97
ElasticTranscoder_EXPORTS.h
Aws::ElasticTranscoder::Model::Warning::WithMessage
Warning & WithMessage(Aws::String &&value)
Definition: Warning.h:132
Aws::ElasticTranscoder::Model::Warning::SetCode
void SetCode(const char *value)
Definition: Warning.h:67