AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 ConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
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) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
65 template<typename RequestIdT = Aws::String>
66 ConflictException& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
68
70
77 inline ConflictExceptionReason GetReason() const { return m_reason; }
78 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
79 inline void SetReason(ConflictExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
80 inline ConflictException& WithReason(ConflictExceptionReason value) { SetReason(value); return *this;}
82 private:
83
84 Aws::String m_message;
85 bool m_messageHasBeenSet = false;
86
87 Aws::String m_requestId;
88 bool m_requestIdHasBeenSet = false;
89
91 bool m_reasonHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IdentityStore
96} // 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