AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/ConflictExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 deadline
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_DEADLINE_API ConflictException() = default;
39 AWS_DEADLINE_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const Aws::String& GetMessage() const { return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 template<typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
50 template<typename MessageT = Aws::String>
51 ConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
53
55
58 inline ConflictExceptionReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(ConflictExceptionReason value) { m_reasonHasBeenSet = true; m_reason = value; }
61 inline ConflictException& WithReason(ConflictExceptionReason value) { SetReason(value); return *this;}
63
65
68 inline const Aws::String& GetResourceId() const { return m_resourceId; }
69 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
70 template<typename ResourceIdT = Aws::String>
71 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
72 template<typename ResourceIdT = Aws::String>
73 ConflictException& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetResourceType() const { return m_resourceType; }
81 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
82 template<typename ResourceTypeT = Aws::String>
83 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
84 template<typename ResourceTypeT = Aws::String>
85 ConflictException& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
93 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
94 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
95 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
96 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
97 ConflictException& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
98 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
99 ConflictException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
100 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
101 }
103 private:
104
105 Aws::String m_message;
106 bool m_messageHasBeenSet = false;
107
109 bool m_reasonHasBeenSet = false;
110
111 Aws::String m_resourceId;
112 bool m_resourceIdHasBeenSet = false;
113
114 Aws::String m_resourceType;
115 bool m_resourceTypeHasBeenSet = false;
116
118 bool m_contextHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace deadline
123} // namespace Aws
void SetResourceType(ResourceTypeT &&value)
ConflictException & WithContext(ContextT &&value)
ConflictException & WithResourceId(ResourceIdT &&value)
void SetReason(ConflictExceptionReason value)
ConflictExceptionReason GetReason() const
ConflictException & WithMessage(MessageT &&value)
AWS_DEADLINE_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ConflictException & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetMessage() const
const Aws::String & GetResourceId() const
const Aws::String & GetResourceType() const
AWS_DEADLINE_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ConflictException()=default
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictException & AddContext(ContextKeyT &&key, ContextValueT &&value)
ConflictException & WithReason(ConflictExceptionReason value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue