AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_BACKUP_API AlreadyExistsException() = default;
37 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
42 inline const Aws::String& GetCode() const { return m_code; }
43 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
44 template<typename CodeT = Aws::String>
45 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
46 template<typename CodeT = Aws::String>
47 AlreadyExistsException& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
56 template<typename MessageT = Aws::String>
57 AlreadyExistsException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
59
61
64 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
65 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
66 template<typename CreatorRequestIdT = Aws::String>
67 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
68 template<typename CreatorRequestIdT = Aws::String>
69 AlreadyExistsException& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetArn() const { return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 template<typename ArnT = Aws::String>
79 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
80 template<typename ArnT = Aws::String>
81 AlreadyExistsException& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
83
85
88 inline const Aws::String& GetType() const { return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 template<typename TypeT = Aws::String>
91 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
92 template<typename TypeT = Aws::String>
93 AlreadyExistsException& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
95
97
100 inline const Aws::String& GetContext() const { return m_context; }
101 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
102 template<typename ContextT = Aws::String>
103 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
104 template<typename ContextT = Aws::String>
105 AlreadyExistsException& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
107 private:
108
109 Aws::String m_code;
110 bool m_codeHasBeenSet = false;
111
112 Aws::String m_message;
113 bool m_messageHasBeenSet = false;
114
115 Aws::String m_creatorRequestId;
116 bool m_creatorRequestIdHasBeenSet = false;
117
118 Aws::String m_arn;
119 bool m_arnHasBeenSet = false;
120
121 Aws::String m_type;
122 bool m_typeHasBeenSet = false;
123
124 Aws::String m_context;
125 bool m_contextHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Backup
130} // 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