AWS SDK for C++  0.14.3
AWS SDK for C++
FailureDetails.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 EMR
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  FailureDetails& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
50  inline const Aws::String& GetReason() const{ return m_reason; }
51 
57  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
58 
64  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = value; }
65 
71  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
72 
78  inline FailureDetails& WithReason(const Aws::String& value) { SetReason(value); return *this;}
79 
85  inline FailureDetails& WithReason(Aws::String&& value) { SetReason(value); return *this;}
86 
92  inline FailureDetails& WithReason(const char* value) { SetReason(value); return *this;}
93 
99  inline const Aws::String& GetMessage() const{ return m_message; }
100 
106  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
107 
113  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
114 
120  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
121 
127  inline FailureDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
128 
134  inline FailureDetails& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
135 
141  inline FailureDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
142 
147  inline const Aws::String& GetLogFile() const{ return m_logFile; }
148 
153  inline void SetLogFile(const Aws::String& value) { m_logFileHasBeenSet = true; m_logFile = value; }
154 
159  inline void SetLogFile(Aws::String&& value) { m_logFileHasBeenSet = true; m_logFile = value; }
160 
165  inline void SetLogFile(const char* value) { m_logFileHasBeenSet = true; m_logFile.assign(value); }
166 
171  inline FailureDetails& WithLogFile(const Aws::String& value) { SetLogFile(value); return *this;}
172 
177  inline FailureDetails& WithLogFile(Aws::String&& value) { SetLogFile(value); return *this;}
178 
183  inline FailureDetails& WithLogFile(const char* value) { SetLogFile(value); return *this;}
184 
185  private:
186  Aws::String m_reason;
187  bool m_reasonHasBeenSet;
188  Aws::String m_message;
189  bool m_messageHasBeenSet;
190  Aws::String m_logFile;
191  bool m_logFileHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace EMR
196 } // namespace Aws
FailureDetails & WithReason(const char *value)
FailureDetails & WithLogFile(const char *value)
FailureDetails & WithMessage(Aws::String &&value)
void SetLogFile(const char *value)
FailureDetails & WithReason(Aws::String &&value)
void SetLogFile(const Aws::String &value)
void SetMessage(const Aws::String &value)
FailureDetails & WithLogFile(const Aws::String &value)
const Aws::String & GetLogFile() const
void SetReason(const char *value)
const Aws::String & GetMessage() const
FailureDetails & WithReason(const Aws::String &value)
void SetReason(Aws::String &&value)
void SetMessage(const char *value)
FailureDetails & WithLogFile(Aws::String &&value)
FailureDetails & WithMessage(const char *value)
void SetMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetReason() const
FailureDetails & WithMessage(const Aws::String &value)
void SetReason(const Aws::String &value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
JSON (JavaScript Object Notation).
void SetLogFile(Aws::String &&value)