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/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace drs {
20namespace Model {
21
29 public:
30 AWS_DRS_API ConflictException() = default;
34
36
37 inline const Aws::String& GetCode() const { return m_code; }
38 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
39 template <typename CodeT = Aws::String>
40 void SetCode(CodeT&& value) {
41 m_codeHasBeenSet = true;
42 m_code = std::forward<CodeT>(value);
43 }
44 template <typename CodeT = Aws::String>
45 ConflictException& WithCode(CodeT&& value) {
46 SetCode(std::forward<CodeT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetMessage() const { return m_message; }
54 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
55 template <typename MessageT = Aws::String>
56 void SetMessage(MessageT&& value) {
57 m_messageHasBeenSet = true;
58 m_message = std::forward<MessageT>(value);
59 }
60 template <typename MessageT = Aws::String>
61 ConflictException& WithMessage(MessageT&& value) {
62 SetMessage(std::forward<MessageT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetResourceId() const { return m_resourceId; }
72 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
73 template <typename ResourceIdT = Aws::String>
74 void SetResourceId(ResourceIdT&& value) {
75 m_resourceIdHasBeenSet = true;
76 m_resourceId = std::forward<ResourceIdT>(value);
77 }
78 template <typename ResourceIdT = Aws::String>
79 ConflictException& WithResourceId(ResourceIdT&& value) {
80 SetResourceId(std::forward<ResourceIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetResourceType() const { return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 template <typename ResourceTypeT = Aws::String>
92 void SetResourceType(ResourceTypeT&& value) {
93 m_resourceTypeHasBeenSet = true;
94 m_resourceType = std::forward<ResourceTypeT>(value);
95 }
96 template <typename ResourceTypeT = Aws::String>
97 ConflictException& WithResourceType(ResourceTypeT&& value) {
98 SetResourceType(std::forward<ResourceTypeT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_code;
104
105 Aws::String m_message;
106
107 Aws::String m_resourceId;
108
109 Aws::String m_resourceType;
110 bool m_codeHasBeenSet = false;
111 bool m_messageHasBeenSet = false;
112 bool m_resourceIdHasBeenSet = false;
113 bool m_resourceTypeHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace drs
118} // namespace Aws
AWS_DRS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API ConflictException()=default
ConflictException & WithCode(CodeT &&value)
const Aws::String & GetMessage() const
ConflictException & WithResourceId(ResourceIdT &&value)
void SetResourceId(ResourceIdT &&value)
ConflictException & WithMessage(MessageT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
void SetResourceType(ResourceTypeT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
const Aws::String & GetResourceType() const
const Aws::String & GetCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue