AWS SDK for C++  1.9.129
AWS SDK for C++
ValidationError.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
45 
49  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
50 
54  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
55 
59  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
60 
64  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 
69  inline ValidationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
70 
74  inline ValidationError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
75 
79  inline ValidationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
80 
81  private:
82 
83  Aws::String m_errorMessage;
84  bool m_errorMessageHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace IoT
89 } // namespace Aws
Aws::IoT::Model::ValidationError::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: ValidationError.h:64
Aws::IoT::Model::ValidationError::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: ValidationError.h:44
Aws::IoT::Model::ValidationError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ValidationError::operator=
ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ValidationError::WithErrorMessage
ValidationError & WithErrorMessage(Aws::String &&value)
Definition: ValidationError.h:74
Aws::IoT::Model::ValidationError::ValidationError
ValidationError()
Aws::IoT::Model::ValidationError
Definition: ValidationError.h:33
Aws::IoT::Model::ValidationError::WithErrorMessage
ValidationError & WithErrorMessage(const Aws::String &value)
Definition: ValidationError.h:69
Aws::IoT::Model::ValidationError::WithErrorMessage
ValidationError & WithErrorMessage(const char *value)
Definition: ValidationError.h:79
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ValidationError::ValidationError
ValidationError(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ValidationError::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: ValidationError.h:54
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ValidationError::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: ValidationError.h:59
Aws::IoT::Model::ValidationError::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: ValidationError.h:49
IoT_EXPORTS.h