AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatchOmni {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHOMNI_API ConflictException() = default;
31 AWS_CLOUDWATCHOMNI_API ConflictException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCHOMNI_API ConflictException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_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
57 inline const Aws::String& GetConflictType() const { return m_conflictType; }
58 inline bool ConflictTypeHasBeenSet() const { return m_conflictTypeHasBeenSet; }
59 template <typename ConflictTypeT = Aws::String>
60 void SetConflictType(ConflictTypeT&& value) {
61 m_conflictTypeHasBeenSet = true;
62 m_conflictType = std::forward<ConflictTypeT>(value);
63 }
64 template <typename ConflictTypeT = Aws::String>
65 ConflictException& WithConflictType(ConflictTypeT&& value) {
66 SetConflictType(std::forward<ConflictTypeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResourceId() const { return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 template <typename ResourceIdT = Aws::String>
78 void SetResourceId(ResourceIdT&& value) {
79 m_resourceIdHasBeenSet = true;
80 m_resourceId = std::forward<ResourceIdT>(value);
81 }
82 template <typename ResourceIdT = Aws::String>
83 ConflictException& WithResourceId(ResourceIdT&& value) {
84 SetResourceId(std::forward<ResourceIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetResourceType() const { return m_resourceType; }
94 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 template <typename ResourceTypeT = Aws::String>
96 void SetResourceType(ResourceTypeT&& value) {
97 m_resourceTypeHasBeenSet = true;
98 m_resourceType = std::forward<ResourceTypeT>(value);
99 }
100 template <typename ResourceTypeT = Aws::String>
101 ConflictException& WithResourceType(ResourceTypeT&& value) {
102 SetResourceType(std::forward<ResourceTypeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
112 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
113 template <typename ErrorCodeT = Aws::String>
114 void SetErrorCode(ErrorCodeT&& value) {
115 m_errorCodeHasBeenSet = true;
116 m_errorCode = std::forward<ErrorCodeT>(value);
117 }
118 template <typename ErrorCodeT = Aws::String>
119 ConflictException& WithErrorCode(ErrorCodeT&& value) {
120 SetErrorCode(std::forward<ErrorCodeT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_message;
126
127 Aws::String m_conflictType;
128
129 Aws::String m_resourceId;
130
131 Aws::String m_resourceType;
132
133 Aws::String m_errorCode;
134 bool m_messageHasBeenSet = false;
135 bool m_conflictTypeHasBeenSet = false;
136 bool m_resourceIdHasBeenSet = false;
137 bool m_resourceTypeHasBeenSet = false;
138 bool m_errorCodeHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CloudWatchOmni
143} // namespace Aws
ConflictException & WithConflictType(ConflictTypeT &&value)
AWS_CLOUDWATCHOMNI_API ConflictException()=default
AWS_CLOUDWATCHOMNI_API ConflictException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConflictException & WithMessage(MessageT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API ConflictException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConflictException & WithResourceId(ResourceIdT &&value)
ConflictException & WithErrorCode(ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String