AWS SDK for C++  0.14.3
AWS SDK for C++
Warning.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ElasticTranscoder
29 {
30 namespace Model
31 {
32 
40  {
41  public:
42  Warning();
43  Warning(const Aws::Utils::Json::JsonValue& jsonValue);
44  Warning& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetCode() const{ return m_code; }
51 
55  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
56 
60  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = value; }
61 
65  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
66 
70  inline Warning& WithCode(const Aws::String& value) { SetCode(value); return *this;}
71 
75  inline Warning& WithCode(Aws::String&& value) { SetCode(value); return *this;}
76 
80  inline Warning& WithCode(const char* value) { SetCode(value); return *this;}
81 
87  inline const Aws::String& GetMessage() const{ return m_message; }
88 
94  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
95 
101  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
102 
108  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
109 
115  inline Warning& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
116 
122  inline Warning& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
123 
129  inline Warning& WithMessage(const char* value) { SetMessage(value); return *this;}
130 
131  private:
132  Aws::String m_code;
133  bool m_codeHasBeenSet;
134  Aws::String m_message;
135  bool m_messageHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace ElasticTranscoder
140 } // namespace Aws
Warning & WithCode(const char *value)
Definition: Warning.h:80
void SetMessage(const Aws::String &value)
Definition: Warning.h:94
void SetCode(Aws::String &&value)
Definition: Warning.h:60
void SetCode(const Aws::String &value)
Definition: Warning.h:55
Warning & WithMessage(const char *value)
Definition: Warning.h:129
const Aws::String & GetMessage() const
Definition: Warning.h:87
Warning & WithMessage(Aws::String &&value)
Definition: Warning.h:122
Warning & WithCode(const Aws::String &value)
Definition: Warning.h:70
void SetMessage(Aws::String &&value)
Definition: Warning.h:101
#define AWS_ELASTICTRANSCODER_API
void SetMessage(const char *value)
Definition: Warning.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetCode() const
Definition: Warning.h:50
Warning & WithMessage(const Aws::String &value)
Definition: Warning.h:115
void SetCode(const char *value)
Definition: Warning.h:65
Warning & WithCode(Aws::String &&value)
Definition: Warning.h:75
JSON (JavaScript Object Notation).