AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessDeniedException.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEADLINE_API AccessDeniedException();
39 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
58 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
59 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
60 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
61 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
63 inline AccessDeniedException& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
64 inline AccessDeniedException& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
65 inline AccessDeniedException& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
66 inline AccessDeniedException& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
67 inline AccessDeniedException& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
68 inline AccessDeniedException& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
69 inline AccessDeniedException& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
70 inline AccessDeniedException& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
72 private:
73
74 Aws::String m_message;
75 bool m_messageHasBeenSet = false;
76
78 bool m_contextHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace deadline
83} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AccessDeniedException & AddContext(Aws::String &&key, const Aws::String &value)
AccessDeniedException & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
AccessDeniedException & AddContext(const Aws::String &key, const Aws::String &value)
AccessDeniedException & WithMessage(const char *value)
AccessDeniedException & WithMessage(const Aws::String &value)
AccessDeniedException & AddContext(Aws::String &&key, const char *value)
AccessDeniedException & WithMessage(Aws::String &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDeniedException & AddContext(const char *key, Aws::String &&value)
AccessDeniedException & AddContext(Aws::String &&key, Aws::String &&value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
AccessDeniedException & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
AccessDeniedException & AddContext(const char *key, const char *value)
AWS_DEADLINE_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & AddContext(const Aws::String &key, Aws::String &&value)
AWS_DEADLINE_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
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