AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
AlreadyExistsException.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Backup {
20namespace Model {
21
28 public:
29 AWS_BACKUP_API AlreadyExistsException() = default;
32 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
36 inline const Aws::String& GetCode() const { return m_code; }
37 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
38 template <typename CodeT = Aws::String>
39 void SetCode(CodeT&& value) {
40 m_codeHasBeenSet = true;
41 m_code = std::forward<CodeT>(value);
42 }
43 template <typename CodeT = Aws::String>
45 SetCode(std::forward<CodeT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetMessage() const { return m_message; }
53 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
54 template <typename MessageT = Aws::String>
55 void SetMessage(MessageT&& value) {
56 m_messageHasBeenSet = true;
57 m_message = std::forward<MessageT>(value);
58 }
59 template <typename MessageT = Aws::String>
61 SetMessage(std::forward<MessageT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
71 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
72 template <typename CreatorRequestIdT = Aws::String>
73 void SetCreatorRequestId(CreatorRequestIdT&& value) {
74 m_creatorRequestIdHasBeenSet = true;
75 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
76 }
77 template <typename CreatorRequestIdT = Aws::String>
78 AlreadyExistsException& WithCreatorRequestId(CreatorRequestIdT&& value) {
79 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetArn() const { return m_arn; }
89 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
90 template <typename ArnT = Aws::String>
91 void SetArn(ArnT&& value) {
92 m_arnHasBeenSet = true;
93 m_arn = std::forward<ArnT>(value);
94 }
95 template <typename ArnT = Aws::String>
97 SetArn(std::forward<ArnT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetType() const { return m_type; }
107 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
108 template <typename TypeT = Aws::String>
109 void SetType(TypeT&& value) {
110 m_typeHasBeenSet = true;
111 m_type = std::forward<TypeT>(value);
112 }
113 template <typename TypeT = Aws::String>
115 SetType(std::forward<TypeT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetContext() const { return m_context; }
125 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
126 template <typename ContextT = Aws::String>
127 void SetContext(ContextT&& value) {
128 m_contextHasBeenSet = true;
129 m_context = std::forward<ContextT>(value);
130 }
131 template <typename ContextT = Aws::String>
133 SetContext(std::forward<ContextT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_code;
139
140 Aws::String m_message;
141
142 Aws::String m_creatorRequestId;
143
144 Aws::String m_arn;
145
146 Aws::String m_type;
147
148 Aws::String m_context;
149 bool m_codeHasBeenSet = false;
150 bool m_messageHasBeenSet = false;
151 bool m_creatorRequestIdHasBeenSet = false;
152 bool m_arnHasBeenSet = false;
153 bool m_typeHasBeenSet = false;
154 bool m_contextHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace Backup
159} // namespace Aws
AlreadyExistsException & WithCode(CodeT &&value)
AWS_BACKUP_API AlreadyExistsException & operator=(Aws::Utils::Json::JsonView jsonValue)
AlreadyExistsException & WithMessage(MessageT &&value)
AWS_BACKUP_API AlreadyExistsException()=default
AWS_BACKUP_API AlreadyExistsException(Aws::Utils::Json::JsonView jsonValue)
AlreadyExistsException & WithArn(ArnT &&value)
AlreadyExistsException & WithContext(ContextT &&value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AlreadyExistsException & WithType(TypeT &&value)
void SetCreatorRequestId(CreatorRequestIdT &&value)
AlreadyExistsException & WithCreatorRequestId(CreatorRequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue