AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/ConflictExceptionReason.h>
9#include <aws/cleanrooms/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CleanRooms {
22namespace Model {
23
31 public:
32 AWS_CLEANROOMS_API ConflictException() = default;
33 AWS_CLEANROOMS_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
47 ConflictException& WithMessage(MessageT&& value) {
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template <typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) {
61 m_resourceIdHasBeenSet = true;
62 m_resourceId = std::forward<ResourceIdT>(value);
63 }
64 template <typename ResourceIdT = Aws::String>
65 ConflictException& WithResourceId(ResourceIdT&& value) {
66 SetResourceId(std::forward<ResourceIdT>(value));
67 return *this;
68 }
70
72
75 inline ResourceType GetResourceType() const { return m_resourceType; }
76 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
77 inline void SetResourceType(ResourceType value) {
78 m_resourceTypeHasBeenSet = true;
79 m_resourceType = value;
80 }
82 SetResourceType(value);
83 return *this;
84 }
86
88
91 inline ConflictExceptionReason GetReason() const { return m_reason; }
92 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
94 m_reasonHasBeenSet = true;
95 m_reason = value;
96 }
98 SetReason(value);
99 return *this;
100 }
102 private:
103 Aws::String m_message;
104
105 Aws::String m_resourceId;
106
107 ResourceType m_resourceType{ResourceType::NOT_SET};
108
110 bool m_messageHasBeenSet = false;
111 bool m_resourceIdHasBeenSet = false;
112 bool m_resourceTypeHasBeenSet = false;
113 bool m_reasonHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CleanRooms
118} // namespace Aws
AWS_CLEANROOMS_API ConflictException()=default
ConflictException & WithMessage(MessageT &&value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLEANROOMS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithResourceId(ResourceIdT &&value)
ConflictException & WithResourceType(ResourceType value)
void SetReason(ConflictExceptionReason value)
AWS_CLEANROOMS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
ConflictExceptionReason GetReason() const
ConflictException & WithReason(ConflictExceptionReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue