AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
ConflictException.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/ConflictExceptionReason.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
33 public:
34 AWS_IDENTITYSTORE_API ConflictException() = default;
35 AWS_IDENTITYSTORE_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IDENTITYSTORE_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
49 ConflictException& WithMessage(MessageT&& value) {
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
63 template <typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) {
65 m_requestIdHasBeenSet = true;
66 m_requestId = std::forward<RequestIdT>(value);
67 }
68 template <typename RequestIdT = Aws::String>
69 ConflictException& WithRequestId(RequestIdT&& value) {
70 SetRequestId(std::forward<RequestIdT>(value));
71 return *this;
72 }
74
76
81 inline ConflictExceptionReason GetReason() const { return m_reason; }
82 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
84 m_reasonHasBeenSet = true;
85 m_reason = value;
86 }
88 SetReason(value);
89 return *this;
90 }
92 private:
93 Aws::String m_message;
94
95 Aws::String m_requestId;
96
98 bool m_messageHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100 bool m_reasonHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace IdentityStore
105} // namespace Aws
ConflictException & WithReason(ConflictExceptionReason value)
void SetReason(ConflictExceptionReason value)
ConflictException & WithMessage(MessageT &&value)
AWS_IDENTITYSTORE_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithRequestId(RequestIdT &&value)
ConflictExceptionReason GetReason() const
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IDENTITYSTORE_API ConflictException()=default
AWS_IDENTITYSTORE_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue