AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const ConflictExceptionReason& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const ConflictExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(ConflictExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
64 inline ConflictException& WithReason(const ConflictExceptionReason& value) { SetReason(value); return *this;}
65 inline ConflictException& WithReason(ConflictExceptionReason&& value) { SetReason(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
73 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
74 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
75 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
76 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
77 inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
78 inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
79 inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
81
83
86 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
87 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
88 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
89 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
90 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
91 inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
92 inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
93 inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
101 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
102 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
103 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
104 inline ConflictException& WithContext(const Aws::Map<Aws::String, Aws::String>& value) { SetContext(value); return *this;}
105 inline ConflictException& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
106 inline ConflictException& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
107 inline ConflictException& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
108 inline ConflictException& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
109 inline ConflictException& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
110 inline ConflictException& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
111 inline ConflictException& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
112 inline ConflictException& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
114 private:
115
116 Aws::String m_message;
117 bool m_messageHasBeenSet = false;
118
120 bool m_reasonHasBeenSet = false;
121
122 Aws::String m_resourceId;
123 bool m_resourceIdHasBeenSet = false;
124
125 Aws::String m_resourceType;
126 bool m_resourceTypeHasBeenSet = false;
127
129 bool m_contextHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace deadline
134} // namespace Aws
ConflictException & WithMessage(const Aws::String &value)
void SetReason(ConflictExceptionReason &&value)
ConflictException & WithResourceType(const char *value)
ConflictException & AddContext(Aws::String &&key, Aws::String &&value)
ConflictException & WithMessage(Aws::String &&value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
void SetResourceId(const Aws::String &value)
ConflictException & WithReason(const ConflictExceptionReason &value)
ConflictException & AddContext(const Aws::String &key, const Aws::String &value)
AWS_DEADLINE_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ConflictException & WithMessage(const char *value)
const Aws::String & GetMessage() const
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetResourceId() const
const Aws::String & GetResourceType() const
void SetMessage(const Aws::String &value)
AWS_DEADLINE_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & AddContext(const char *key, Aws::String &&value)
ConflictException & WithResourceId(const char *value)
ConflictException & AddContext(const char *key, const char *value)
ConflictException & AddContext(const Aws::String &key, Aws::String &&value)
ConflictException & AddContext(Aws::String &&key, const char *value)
ConflictException & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
ConflictException & WithResourceId(const Aws::String &value)
void SetResourceType(Aws::String &&value)
ConflictException & WithResourceId(Aws::String &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictException & AddContext(Aws::String &&key, const Aws::String &value)
void SetResourceType(const Aws::String &value)
void SetReason(const ConflictExceptionReason &value)
ConflictException & WithReason(ConflictExceptionReason &&value)
const ConflictExceptionReason & GetReason() const
ConflictException & WithResourceType(Aws::String &&value)
ConflictException & WithResourceType(const Aws::String &value)
ConflictException & WithContext(Aws::Map< Aws::String, Aws::String > &&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