AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mgn/model/ErrorDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace mgn
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MGN_API ConflictException() = default;
41
42
44
45 inline const Aws::String& GetCode() const { return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 template<typename CodeT = Aws::String>
48 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
49 template<typename CodeT = Aws::String>
50 ConflictException& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
52
54
57 inline const Aws::Vector<ErrorDetails>& GetErrors() const { return m_errors; }
58 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
59 template<typename ErrorsT = Aws::Vector<ErrorDetails>>
60 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
61 template<typename ErrorsT = Aws::Vector<ErrorDetails>>
62 ConflictException& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
63 template<typename ErrorsT = ErrorDetails>
64 ConflictException& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
66
68
69 inline const Aws::String& GetMessage() const { return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 template<typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
73 template<typename MessageT = Aws::String>
74 ConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
76
78
81 inline const Aws::String& GetResourceId() const { return m_resourceId; }
82 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
83 template<typename ResourceIdT = Aws::String>
84 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
85 template<typename ResourceIdT = Aws::String>
86 ConflictException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
88
90
93 inline const Aws::String& GetResourceType() const { return m_resourceType; }
94 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 template<typename ResourceTypeT = Aws::String>
96 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
97 template<typename ResourceTypeT = Aws::String>
98 ConflictException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
100 private:
101
102 Aws::String m_code;
103 bool m_codeHasBeenSet = false;
104
106 bool m_errorsHasBeenSet = false;
107
108 Aws::String m_message;
109 bool m_messageHasBeenSet = false;
110
111 Aws::String m_resourceId;
112 bool m_resourceIdHasBeenSet = false;
113
114 Aws::String m_resourceType;
115 bool m_resourceTypeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace mgn
120} // namespace Aws
ConflictException & WithErrors(ErrorsT &&value)
const Aws::Vector< ErrorDetails > & GetErrors() const
const Aws::String & GetMessage() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceId(ResourceIdT &&value)
AWS_MGN_API ConflictException()=default
void SetResourceType(ResourceTypeT &&value)
AWS_MGN_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & AddErrors(ErrorsT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
ConflictException & WithCode(CodeT &&value)
ConflictException & WithResourceId(ResourceIdT &&value)
ConflictException & WithMessage(MessageT &&value)
const Aws::String & GetResourceType() const
AWS_MGN_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCode() const
const Aws::String & GetResourceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue