AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/identitystore/IdentityStore_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/identitystore/model/ConflictExceptionReason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IdentityStore
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_IDENTITYSTORE_API ConflictException();
40 AWS_IDENTITYSTORE_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IDENTITYSTORE_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
63 inline const Aws::String& GetRequestId() const{ return m_requestId; }
64 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
65 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
68 inline ConflictException& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline ConflictException& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline ConflictException& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72
74
81 inline const ConflictExceptionReason& GetReason() const{ return m_reason; }
82 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
83 inline void SetReason(const ConflictExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
84 inline void SetReason(ConflictExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
85 inline ConflictException& WithReason(const ConflictExceptionReason& value) { SetReason(value); return *this;}
86 inline ConflictException& WithReason(ConflictExceptionReason&& value) { SetReason(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_message;
91 bool m_messageHasBeenSet = false;
92
93 Aws::String m_requestId;
94 bool m_requestIdHasBeenSet = false;
95
97 bool m_reasonHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace IdentityStore
102} // namespace Aws
ConflictException & WithRequestId(const Aws::String &value)
ConflictException & WithMessage(Aws::String &&value)
ConflictException & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
ConflictException & WithReason(const ConflictExceptionReason &value)
const ConflictExceptionReason & GetReason() const
AWS_IDENTITYSTORE_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithRequestId(Aws::String &&value)
ConflictException & WithReason(ConflictExceptionReason &&value)
ConflictException & WithMessage(const Aws::String &value)
void SetReason(const ConflictExceptionReason &value)
ConflictException & WithMessage(const char *value)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(const Aws::String &value)
void SetReason(ConflictExceptionReason &&value)
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