AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ResilienceHub {
20namespace Model {
21
32 public:
33 AWS_RESILIENCEHUB_API ConflictException() = default;
34 AWS_RESILIENCEHUB_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUB_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const Aws::String& GetMessage() const { return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 template <typename MessageT = Aws::String>
43 void SetMessage(MessageT&& value) {
44 m_messageHasBeenSet = true;
45 m_message = std::forward<MessageT>(value);
46 }
47 template <typename MessageT = Aws::String>
48 ConflictException& WithMessage(MessageT&& value) {
49 SetMessage(std::forward<MessageT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
66 ConflictException& WithResourceId(ResourceIdT&& value) {
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetResourceType() const { return m_resourceType; }
77 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
78 template <typename ResourceTypeT = Aws::String>
79 void SetResourceType(ResourceTypeT&& value) {
80 m_resourceTypeHasBeenSet = true;
81 m_resourceType = std::forward<ResourceTypeT>(value);
82 }
83 template <typename ResourceTypeT = Aws::String>
84 ConflictException& WithResourceType(ResourceTypeT&& value) {
85 SetResourceType(std::forward<ResourceTypeT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_message;
91
92 Aws::String m_resourceId;
93
94 Aws::String m_resourceType;
95 bool m_messageHasBeenSet = false;
96 bool m_resourceIdHasBeenSet = false;
97 bool m_resourceTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ResilienceHub
102} // namespace Aws
ConflictException & WithResourceType(ResourceTypeT &&value)
AWS_RESILIENCEHUB_API ConflictException()=default
ConflictException & WithMessage(MessageT &&value)
AWS_RESILIENCEHUB_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUB_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue