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/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/panorama/Panorama_EXPORTS.h>
10#include <aws/panorama/model/ConflictExceptionErrorArgument.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Panorama {
22namespace Model {
23
30 public:
31 AWS_PANORAMA_API ConflictException() = default;
32 AWS_PANORAMA_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ConflictExceptionErrorArgument>& GetErrorArguments() const { return m_errorArguments; }
41 inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; }
42 template <typename ErrorArgumentsT = Aws::Vector<ConflictExceptionErrorArgument>>
43 void SetErrorArguments(ErrorArgumentsT&& value) {
44 m_errorArgumentsHasBeenSet = true;
45 m_errorArguments = std::forward<ErrorArgumentsT>(value);
46 }
47 template <typename ErrorArgumentsT = Aws::Vector<ConflictExceptionErrorArgument>>
48 ConflictException& WithErrorArguments(ErrorArgumentsT&& value) {
49 SetErrorArguments(std::forward<ErrorArgumentsT>(value));
50 return *this;
51 }
52 template <typename ErrorArgumentsT = ConflictExceptionErrorArgument>
53 ConflictException& AddErrorArguments(ErrorArgumentsT&& value) {
54 m_errorArgumentsHasBeenSet = true;
55 m_errorArguments.emplace_back(std::forward<ErrorArgumentsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetErrorId() const { return m_errorId; }
65 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
66 template <typename ErrorIdT = Aws::String>
67 void SetErrorId(ErrorIdT&& value) {
68 m_errorIdHasBeenSet = true;
69 m_errorId = std::forward<ErrorIdT>(value);
70 }
71 template <typename ErrorIdT = Aws::String>
72 ConflictException& WithErrorId(ErrorIdT&& value) {
73 SetErrorId(std::forward<ErrorIdT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template <typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) {
84 m_messageHasBeenSet = true;
85 m_message = std::forward<MessageT>(value);
86 }
87 template <typename MessageT = Aws::String>
88 ConflictException& WithMessage(MessageT&& value) {
89 SetMessage(std::forward<MessageT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetResourceId() const { return m_resourceId; }
99 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
100 template <typename ResourceIdT = Aws::String>
101 void SetResourceId(ResourceIdT&& value) {
102 m_resourceIdHasBeenSet = true;
103 m_resourceId = std::forward<ResourceIdT>(value);
104 }
105 template <typename ResourceIdT = Aws::String>
106 ConflictException& WithResourceId(ResourceIdT&& value) {
107 SetResourceId(std::forward<ResourceIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetResourceType() const { return m_resourceType; }
117 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
118 template <typename ResourceTypeT = Aws::String>
119 void SetResourceType(ResourceTypeT&& value) {
120 m_resourceTypeHasBeenSet = true;
121 m_resourceType = std::forward<ResourceTypeT>(value);
122 }
123 template <typename ResourceTypeT = Aws::String>
124 ConflictException& WithResourceType(ResourceTypeT&& value) {
125 SetResourceType(std::forward<ResourceTypeT>(value));
126 return *this;
127 }
129 private:
131
132 Aws::String m_errorId;
133
134 Aws::String m_message;
135
136 Aws::String m_resourceId;
137
138 Aws::String m_resourceType;
139 bool m_errorArgumentsHasBeenSet = false;
140 bool m_errorIdHasBeenSet = false;
141 bool m_messageHasBeenSet = false;
142 bool m_resourceIdHasBeenSet = false;
143 bool m_resourceTypeHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Panorama
148} // namespace Aws
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceType() const
const Aws::String & GetMessage() const
ConflictException & WithErrorArguments(ErrorArgumentsT &&value)
void SetErrorArguments(ErrorArgumentsT &&value)
ConflictException & WithErrorId(ErrorIdT &&value)
ConflictException & AddErrorArguments(ErrorArgumentsT &&value)
AWS_PANORAMA_API ConflictException()=default
AWS_PANORAMA_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ConflictExceptionErrorArgument > & GetErrorArguments() const
ConflictException & WithResourceId(ResourceIdT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetErrorId() const
const Aws::String & GetResourceId() const
ConflictException & WithMessage(MessageT &&value)
AWS_PANORAMA_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue