AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidRequestException.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/comprehend/model/InvalidRequestReason.h>
10#include <aws/comprehend/model/InvalidRequestDetail.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 Comprehend
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_COMPREHEND_API InvalidRequestException();
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
56 inline const InvalidRequestReason& GetReason() const{ return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 inline void SetReason(const InvalidRequestReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
59 inline void SetReason(InvalidRequestReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
60 inline InvalidRequestException& WithReason(const InvalidRequestReason& value) { SetReason(value); return *this;}
61 inline InvalidRequestException& WithReason(InvalidRequestReason&& value) { SetReason(std::move(value)); return *this;}
63
65
66 inline const InvalidRequestDetail& GetDetail() const{ return m_detail; }
67 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
68 inline void SetDetail(const InvalidRequestDetail& value) { m_detailHasBeenSet = true; m_detail = value; }
69 inline void SetDetail(InvalidRequestDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
70 inline InvalidRequestException& WithDetail(const InvalidRequestDetail& value) { SetDetail(value); return *this;}
71 inline InvalidRequestException& WithDetail(InvalidRequestDetail&& value) { SetDetail(std::move(value)); return *this;}
73 private:
74
75 Aws::String m_message;
76 bool m_messageHasBeenSet = false;
77
78 InvalidRequestReason m_reason;
79 bool m_reasonHasBeenSet = false;
80
81 InvalidRequestDetail m_detail;
82 bool m_detailHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Comprehend
87} // namespace Aws
InvalidRequestException & WithReason(InvalidRequestReason &&value)
InvalidRequestException & WithDetail(const InvalidRequestDetail &value)
void SetReason(const InvalidRequestReason &value)
InvalidRequestException & WithMessage(Aws::String &&value)
InvalidRequestException & WithMessage(const char *value)
InvalidRequestException & WithMessage(const Aws::String &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
InvalidRequestException & WithDetail(InvalidRequestDetail &&value)
AWS_COMPREHEND_API InvalidRequestException & operator=(Aws::Utils::Json::JsonView jsonValue)
InvalidRequestException & WithReason(const InvalidRequestReason &value)
AWS_COMPREHEND_API InvalidRequestException(Aws::Utils::Json::JsonView jsonValue)
void SetDetail(const InvalidRequestDetail &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue