AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3files/S3Files_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace S3Files {
20namespace Model {
21
30 public:
31 AWS_S3FILES_API ConflictException() = default;
34 AWS_S3FILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
41 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
42 template <typename ErrorCodeT = Aws::String>
43 void SetErrorCode(ErrorCodeT&& value) {
44 m_errorCodeHasBeenSet = true;
45 m_errorCode = std::forward<ErrorCodeT>(value);
46 }
47 template <typename ErrorCodeT = Aws::String>
48 ConflictException& WithErrorCode(ErrorCodeT&& value) {
49 SetErrorCode(std::forward<ErrorCodeT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetMessage() const { return m_message; }
57 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
58 template <typename MessageT = Aws::String>
59 void SetMessage(MessageT&& value) {
60 m_messageHasBeenSet = true;
61 m_message = std::forward<MessageT>(value);
62 }
63 template <typename MessageT = Aws::String>
64 ConflictException& WithMessage(MessageT&& value) {
65 SetMessage(std::forward<MessageT>(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 private:
106 Aws::String m_errorCode;
107
108 Aws::String m_message;
109
110 Aws::String m_resourceId;
111
112 Aws::String m_resourceType;
113 bool m_errorCodeHasBeenSet = false;
114 bool m_messageHasBeenSet = false;
115 bool m_resourceIdHasBeenSet = false;
116 bool m_resourceTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace S3Files
121} // namespace Aws
const Aws::String & GetResourceType() const
void SetResourceId(ResourceIdT &&value)
ConflictException & WithErrorCode(ErrorCodeT &&value)
ConflictException & WithResourceId(ResourceIdT &&value)
AWS_S3FILES_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceTypeT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetErrorCode() const
ConflictException & WithMessage(MessageT &&value)
AWS_S3FILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_S3FILES_API ConflictException()=default
const Aws::String & GetMessage() const
const Aws::String & GetResourceId() const
AWS_S3FILES_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue