AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BadRequestException.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/ErrorDetail.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GREENGRASS_API BadRequestException();
37 AWS_GREENGRASS_API BadRequestException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const{ return m_errorDetails; }
47 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
48 inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
49 inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
51 inline BadRequestException& WithErrorDetails(Aws::Vector<ErrorDetail>&& value) { SetErrorDetails(std::move(value)); return *this;}
52 inline BadRequestException& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
53 inline BadRequestException& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::String& GetMessage() const{ return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
63 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
64 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 inline BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
66 inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
67 inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
69 private:
70
71 Aws::Vector<ErrorDetail> m_errorDetails;
72 bool m_errorDetailsHasBeenSet = false;
73
74 Aws::String m_message;
75 bool m_messageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Greengrass
80} // namespace Aws
AWS_GREENGRASS_API BadRequestException(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API BadRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
BadRequestException & WithMessage(Aws::String &&value)
void SetErrorDetails(const Aws::Vector< ErrorDetail > &value)
BadRequestException & WithMessage(const char *value)
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
BadRequestException & AddErrorDetails(ErrorDetail &&value)
BadRequestException & WithMessage(const Aws::String &value)
BadRequestException & WithErrorDetails(const Aws::Vector< ErrorDetail > &value)
void SetErrorDetails(Aws::Vector< ErrorDetail > &&value)
BadRequestException & AddErrorDetails(const ErrorDetail &value)
BadRequestException & WithErrorDetails(Aws::Vector< ErrorDetail > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue