AWS SDK for C++  1.8.126
AWS SDK for C++
BadRequestException.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Greengrass
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const{ return m_errorDetails; }
46 
50  inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
51 
55  inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
56 
60  inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
61 
65  inline BadRequestException& WithErrorDetails(const Aws::Vector<ErrorDetail>& value) { SetErrorDetails(value); return *this;}
66 
70  inline BadRequestException& WithErrorDetails(Aws::Vector<ErrorDetail>&& value) { SetErrorDetails(std::move(value)); return *this;}
71 
75  inline BadRequestException& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
76 
80  inline BadRequestException& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
81 
82 
86  inline const Aws::String& GetMessage() const{ return m_message; }
87 
91  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 
96  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
97 
101  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
102 
106  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
107 
111  inline BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
112 
116  inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
117 
121  inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
122 
123  private:
124 
125  Aws::Vector<ErrorDetail> m_errorDetails;
126  bool m_errorDetailsHasBeenSet;
127 
128  Aws::String m_message;
129  bool m_messageHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace Greengrass
134 } // namespace Aws
Aws::Greengrass::Model::BadRequestException::SetErrorDetails
void SetErrorDetails(const Aws::Vector< ErrorDetail > &value)
Definition: BadRequestException.h:55
Aws::Greengrass::Model::BadRequestException::SetMessage
void SetMessage(Aws::String &&value)
Definition: BadRequestException.h:101
Aws::Greengrass::Model::BadRequestException::WithMessage
BadRequestException & WithMessage(const Aws::String &value)
Definition: BadRequestException.h:111
Aws::Greengrass::Model::BadRequestException::BadRequestException
BadRequestException()
Aws::Greengrass::Model::BadRequestException::SetErrorDetails
void SetErrorDetails(Aws::Vector< ErrorDetail > &&value)
Definition: BadRequestException.h:60
Aws::Greengrass::Model::BadRequestException::AddErrorDetails
BadRequestException & AddErrorDetails(ErrorDetail &&value)
Definition: BadRequestException.h:80
Greengrass_EXPORTS.h
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::BadRequestException
Definition: BadRequestException.h:34
Aws::Greengrass::Model::BadRequestException::SetMessage
void SetMessage(const char *value)
Definition: BadRequestException.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Greengrass::Model::BadRequestException::BadRequestException
BadRequestException(Aws::Utils::Json::JsonView jsonValue)
Aws::Greengrass::Model::BadRequestException::WithMessage
BadRequestException & WithMessage(Aws::String &&value)
Definition: BadRequestException.h:116
AWSVector.h
Aws::Greengrass::Model::ErrorDetail
Definition: ErrorDetail.h:32
Aws::Greengrass::Model::BadRequestException::WithErrorDetails
BadRequestException & WithErrorDetails(Aws::Vector< ErrorDetail > &&value)
Definition: BadRequestException.h:70
Aws::Greengrass::Model::BadRequestException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: BadRequestException.h:91
Aws::Greengrass::Model::BadRequestException::ErrorDetailsHasBeenSet
bool ErrorDetailsHasBeenSet() const
Definition: BadRequestException.h:50
Aws::Greengrass::Model::BadRequestException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Greengrass::Model::BadRequestException::WithErrorDetails
BadRequestException & WithErrorDetails(const Aws::Vector< ErrorDetail > &value)
Definition: BadRequestException.h:65
ErrorDetail.h
Aws::Greengrass::Model::BadRequestException::WithMessage
BadRequestException & WithMessage(const char *value)
Definition: BadRequestException.h:121
Aws::Greengrass::Model::BadRequestException::AddErrorDetails
BadRequestException & AddErrorDetails(const ErrorDetail &value)
Definition: BadRequestException.h:75
Aws::Greengrass::Model::BadRequestException::GetErrorDetails
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
Definition: BadRequestException.h:45
Aws::Greengrass::Model::BadRequestException::operator=
BadRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::BadRequestException::GetMessage
const Aws::String & GetMessage() const
Definition: BadRequestException.h:86
Aws::Greengrass::Model::BadRequestException::SetMessage
void SetMessage(const Aws::String &value)
Definition: BadRequestException.h:96