AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/ConflictExceptionReason.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace deadline {
22namespace Model {
23
32 public:
33 AWS_DEADLINE_API ConflictException() = default;
34 AWS_DEADLINE_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const Aws::String& GetMessage() const { return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 template <typename MessageT = Aws::String>
43 void SetMessage(MessageT&& value) {
44 m_messageHasBeenSet = true;
45 m_message = std::forward<MessageT>(value);
46 }
47 template <typename MessageT = Aws::String>
48 ConflictException& WithMessage(MessageT&& value) {
49 SetMessage(std::forward<MessageT>(value));
50 return *this;
51 }
53
55
58 inline ConflictExceptionReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 m_reasonHasBeenSet = true;
62 m_reason = value;
63 }
65 SetReason(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceId() const { return m_resourceId; }
75 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
76 template <typename ResourceIdT = Aws::String>
77 void SetResourceId(ResourceIdT&& value) {
78 m_resourceIdHasBeenSet = true;
79 m_resourceId = std::forward<ResourceIdT>(value);
80 }
81 template <typename ResourceIdT = Aws::String>
82 ConflictException& WithResourceId(ResourceIdT&& value) {
83 SetResourceId(std::forward<ResourceIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetResourceType() const { return m_resourceType; }
93 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
94 template <typename ResourceTypeT = Aws::String>
95 void SetResourceType(ResourceTypeT&& value) {
96 m_resourceTypeHasBeenSet = true;
97 m_resourceType = std::forward<ResourceTypeT>(value);
98 }
99 template <typename ResourceTypeT = Aws::String>
100 ConflictException& WithResourceType(ResourceTypeT&& value) {
101 SetResourceType(std::forward<ResourceTypeT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
111 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
112 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
113 void SetContext(ContextT&& value) {
114 m_contextHasBeenSet = true;
115 m_context = std::forward<ContextT>(value);
116 }
117 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
118 ConflictException& WithContext(ContextT&& value) {
119 SetContext(std::forward<ContextT>(value));
120 return *this;
121 }
122 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
123 ConflictException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
124 m_contextHasBeenSet = true;
125 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_message;
131
133
134 Aws::String m_resourceId;
135
136 Aws::String m_resourceType;
137
139 bool m_messageHasBeenSet = false;
140 bool m_reasonHasBeenSet = false;
141 bool m_resourceIdHasBeenSet = false;
142 bool m_resourceTypeHasBeenSet = false;
143 bool m_contextHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace deadline
148} // namespace Aws
void SetResourceType(ResourceTypeT &&value)
ConflictException & WithContext(ContextT &&value)
ConflictException & WithResourceId(ResourceIdT &&value)
void SetReason(ConflictExceptionReason value)
ConflictExceptionReason GetReason() const
ConflictException & WithMessage(MessageT &&value)
AWS_DEADLINE_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ConflictException & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetMessage() const
const Aws::String & GetResourceId() const
const Aws::String & GetResourceType() const
AWS_DEADLINE_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ConflictException()=default
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictException & AddContext(ContextKeyT &&key, ContextValueT &&value)
ConflictException & WithReason(ConflictExceptionReason value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue