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/appconfigdata/AppConfigData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfigdata/model/BadRequestReason.h>
10#include <aws/appconfigdata/model/BadRequestDetails.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 AppConfigData
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPCONFIGDATA_API BadRequestException();
38 AWS_APPCONFIGDATA_API BadRequestException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPCONFIGDATA_API BadRequestException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPCONFIGDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const{ return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
59 inline const BadRequestReason& GetReason() const{ return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(const BadRequestReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline void SetReason(BadRequestReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
63 inline BadRequestException& WithReason(const BadRequestReason& value) { SetReason(value); return *this;}
64 inline BadRequestException& WithReason(BadRequestReason&& value) { SetReason(std::move(value)); return *this;}
66
68
71 inline const BadRequestDetails& GetDetails() const{ return m_details; }
72 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
73 inline void SetDetails(const BadRequestDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
74 inline void SetDetails(BadRequestDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
75 inline BadRequestException& WithDetails(const BadRequestDetails& value) { SetDetails(value); return *this;}
76 inline BadRequestException& WithDetails(BadRequestDetails&& value) { SetDetails(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_message;
81 bool m_messageHasBeenSet = false;
82
83 BadRequestReason m_reason;
84 bool m_reasonHasBeenSet = false;
85
86 BadRequestDetails m_details;
87 bool m_detailsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppConfigData
92} // namespace Aws
AWS_APPCONFIGDATA_API BadRequestException(Aws::Utils::Json::JsonView jsonValue)
BadRequestException & WithMessage(const char *value)
BadRequestException & WithDetails(const BadRequestDetails &value)
BadRequestException & WithReason(const BadRequestReason &value)
AWS_APPCONFIGDATA_API BadRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
BadRequestException & WithDetails(BadRequestDetails &&value)
BadRequestException & WithMessage(const Aws::String &value)
const BadRequestDetails & GetDetails() const
void SetDetails(const BadRequestDetails &value)
BadRequestException & WithReason(BadRequestReason &&value)
BadRequestException & WithMessage(Aws::String &&value)
void SetReason(const BadRequestReason &value)
AWS_APPCONFIGDATA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue