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/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfig/model/BadRequestReason.h>
10#include <aws/appconfig/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 AppConfig
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPCONFIG_API BadRequestException();
38 AWS_APPCONFIG_API BadRequestException(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPCONFIG_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
57 inline const BadRequestReason& GetReason() const{ return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 inline void SetReason(const BadRequestReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
60 inline void SetReason(BadRequestReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
61 inline BadRequestException& WithReason(const BadRequestReason& value) { SetReason(value); return *this;}
62 inline BadRequestException& WithReason(BadRequestReason&& value) { SetReason(std::move(value)); return *this;}
64
66
67 inline const BadRequestDetails& GetDetails() const{ return m_details; }
68 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
69 inline void SetDetails(const BadRequestDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
70 inline void SetDetails(BadRequestDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
71 inline BadRequestException& WithDetails(const BadRequestDetails& value) { SetDetails(value); return *this;}
72 inline BadRequestException& WithDetails(BadRequestDetails&& value) { SetDetails(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
79 BadRequestReason m_reason;
80 bool m_reasonHasBeenSet = false;
81
82 BadRequestDetails m_details;
83 bool m_detailsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace AppConfig
88} // namespace Aws
void SetDetails(const BadRequestDetails &value)
BadRequestException & WithMessage(const Aws::String &value)
BadRequestException & WithDetails(BadRequestDetails &&value)
const BadRequestDetails & GetDetails() const
BadRequestException & WithMessage(Aws::String &&value)
BadRequestException & WithReason(BadRequestReason &&value)
void SetMessage(const Aws::String &value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const BadRequestReason &value)
AWS_APPCONFIG_API BadRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
const BadRequestReason & GetReason() const
BadRequestException & WithReason(const BadRequestReason &value)
AWS_APPCONFIG_API BadRequestException(Aws::Utils::Json::JsonView jsonValue)
void SetDetails(BadRequestDetails &&value)
BadRequestException & WithMessage(const char *value)
BadRequestException & WithDetails(const BadRequestDetails &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue