AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9#include <aws/identitystore/model/ValidationExceptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IdentityStore {
21namespace Model {
22
30 public:
31 AWS_IDENTITYSTORE_API ValidationException() = default;
32 AWS_IDENTITYSTORE_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IDENTITYSTORE_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 ValidationException& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
66 ValidationException& WithRequestId(RequestIdT&& value) {
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71
73
78 inline ValidationExceptionReason GetReason() const { return m_reason; }
79 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
81 m_reasonHasBeenSet = true;
82 m_reason = value;
83 }
85 SetReason(value);
86 return *this;
87 }
89 private:
90 Aws::String m_message;
91
92 Aws::String m_requestId;
93
95 bool m_messageHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97 bool m_reasonHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace IdentityStore
102} // namespace Aws
AWS_IDENTITYSTORE_API ValidationException()=default
void SetReason(ValidationExceptionReason value)
ValidationExceptionReason GetReason() const
AWS_IDENTITYSTORE_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IDENTITYSTORE_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithRequestId(RequestIdT &&value)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithMessage(MessageT &&value)
ValidationException & WithReason(ValidationExceptionReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue