AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace PartnerCentralMarketing {
20namespace Model {
21
29 public:
30 AWS_PARTNERCENTRALMARKETING_API ConflictException() = default;
31 AWS_PARTNERCENTRALMARKETING_API ConflictException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_PARTNERCENTRALMARKETING_API ConflictException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
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
59 inline const Aws::String& GetResourceId() const { return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 template <typename ResourceIdT = Aws::String>
62 void SetResourceId(ResourceIdT&& value) {
63 m_resourceIdHasBeenSet = true;
64 m_resourceId = std::forward<ResourceIdT>(value);
65 }
66 template <typename ResourceIdT = Aws::String>
67 ConflictException& WithResourceId(ResourceIdT&& value) {
68 SetResourceId(std::forward<ResourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetResourceType() const { return m_resourceType; }
78 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
79 template <typename ResourceTypeT = Aws::String>
80 void SetResourceType(ResourceTypeT&& value) {
81 m_resourceTypeHasBeenSet = true;
82 m_resourceType = std::forward<ResourceTypeT>(value);
83 }
84 template <typename ResourceTypeT = Aws::String>
85 ConflictException& WithResourceType(ResourceTypeT&& value) {
86 SetResourceType(std::forward<ResourceTypeT>(value));
87 return *this;
88 }
90
92
207 inline const Aws::String& GetReason() const { return m_reason; }
208 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
209 template <typename ReasonT = Aws::String>
210 void SetReason(ReasonT&& value) {
211 m_reasonHasBeenSet = true;
212 m_reason = std::forward<ReasonT>(value);
213 }
214 template <typename ReasonT = Aws::String>
215 ConflictException& WithReason(ReasonT&& value) {
216 SetReason(std::forward<ReasonT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_message;
222
223 Aws::String m_resourceId;
224
225 Aws::String m_resourceType;
226
227 Aws::String m_reason;
228 bool m_messageHasBeenSet = false;
229 bool m_resourceIdHasBeenSet = false;
230 bool m_resourceTypeHasBeenSet = false;
231 bool m_reasonHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace PartnerCentralMarketing
236} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConflictException & WithResourceType(ResourceTypeT &&value)
ConflictException & WithResourceId(ResourceIdT &&value)
AWS_PARTNERCENTRALMARKETING_API ConflictException()=default
ConflictException & WithMessage(MessageT &&value)
AWS_PARTNERCENTRALMARKETING_API ConflictException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API ConflictException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String