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/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/BadRequestReason.h>
10#include <aws/appsync/model/BadRequestDetail.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 AppSync
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_APPSYNC_API BadRequestException();
41 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const Aws::String& GetMessage() const{ return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
58 inline const BadRequestReason& GetReason() const{ return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(const BadRequestReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
61 inline void SetReason(BadRequestReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
62 inline BadRequestException& WithReason(const BadRequestReason& value) { SetReason(value); return *this;}
63 inline BadRequestException& WithReason(BadRequestReason&& value) { SetReason(std::move(value)); return *this;}
65
67
68 inline const BadRequestDetail& GetDetail() const{ return m_detail; }
69 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
70 inline void SetDetail(const BadRequestDetail& value) { m_detailHasBeenSet = true; m_detail = value; }
71 inline void SetDetail(BadRequestDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
72 inline BadRequestException& WithDetail(const BadRequestDetail& value) { SetDetail(value); return *this;}
73 inline BadRequestException& WithDetail(BadRequestDetail&& value) { SetDetail(std::move(value)); return *this;}
75 private:
76
77 Aws::String m_message;
78 bool m_messageHasBeenSet = false;
79
80 BadRequestReason m_reason;
81 bool m_reasonHasBeenSet = false;
82
83 BadRequestDetail m_detail;
84 bool m_detailHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace AppSync
89} // namespace Aws
BadRequestException & WithDetail(const BadRequestDetail &value)
AWS_APPSYNC_API BadRequestException(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
void SetDetail(BadRequestDetail &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetail(const BadRequestDetail &value)
AWS_APPSYNC_API BadRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
BadRequestException & WithReason(BadRequestReason &&value)
const BadRequestReason & GetReason() const
BadRequestException & WithMessage(const char *value)
BadRequestException & WithMessage(Aws::String &&value)
BadRequestException & WithMessage(const Aws::String &value)
void SetReason(BadRequestReason &&value)
BadRequestException & WithDetail(BadRequestDetail &&value)
const BadRequestDetail & GetDetail() const
BadRequestException & WithReason(const BadRequestReason &value)
void SetReason(const BadRequestReason &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue