AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cleanrooms/model/ResourceType.h>
10#include <aws/cleanrooms/model/ConflictExceptionReason.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 CleanRooms
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLEANROOMS_API ConflictException() = default;
38 AWS_CLEANROOMS_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 ConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template<typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<typename ResourceIdT = Aws::String>
62 ConflictException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
69 inline ResourceType GetResourceType() const { return m_resourceType; }
70 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
71 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
72 inline ConflictException& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
74
76
79 inline ConflictExceptionReason GetReason() const { return m_reason; }
80 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
81 inline void SetReason(ConflictExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
82 inline ConflictException& WithReason(ConflictExceptionReason value) { SetReason(value); return *this;}
84 private:
85
86 Aws::String m_message;
87 bool m_messageHasBeenSet = false;
88
89 Aws::String m_resourceId;
90 bool m_resourceIdHasBeenSet = false;
91
92 ResourceType m_resourceType{ResourceType::NOT_SET};
93 bool m_resourceTypeHasBeenSet = false;
94
96 bool m_reasonHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CleanRooms
101} // namespace Aws
AWS_CLEANROOMS_API ConflictException()=default
ConflictException & WithMessage(MessageT &&value)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLEANROOMS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithResourceId(ResourceIdT &&value)
ConflictException & WithResourceType(ResourceType value)
void SetReason(ConflictExceptionReason value)
AWS_CLEANROOMS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
ConflictExceptionReason GetReason() const
ConflictException & WithReason(ConflictExceptionReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue