AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
Denied.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/ExplicitDeny.h>
9#include <aws/iot/model/ImplicitDeny.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
28class Denied {
29 public:
30 AWS_IOT_API Denied() = default;
31 AWS_IOT_API Denied(Aws::Utils::Json::JsonView jsonValue);
34
36
41 inline const ImplicitDeny& GetImplicitDeny() const { return m_implicitDeny; }
42 inline bool ImplicitDenyHasBeenSet() const { return m_implicitDenyHasBeenSet; }
43 template <typename ImplicitDenyT = ImplicitDeny>
44 void SetImplicitDeny(ImplicitDenyT&& value) {
45 m_implicitDenyHasBeenSet = true;
46 m_implicitDeny = std::forward<ImplicitDenyT>(value);
47 }
48 template <typename ImplicitDenyT = ImplicitDeny>
49 Denied& WithImplicitDeny(ImplicitDenyT&& value) {
50 SetImplicitDeny(std::forward<ImplicitDenyT>(value));
51 return *this;
52 }
54
56
59 inline const ExplicitDeny& GetExplicitDeny() const { return m_explicitDeny; }
60 inline bool ExplicitDenyHasBeenSet() const { return m_explicitDenyHasBeenSet; }
61 template <typename ExplicitDenyT = ExplicitDeny>
62 void SetExplicitDeny(ExplicitDenyT&& value) {
63 m_explicitDenyHasBeenSet = true;
64 m_explicitDeny = std::forward<ExplicitDenyT>(value);
65 }
66 template <typename ExplicitDenyT = ExplicitDeny>
67 Denied& WithExplicitDeny(ExplicitDenyT&& value) {
68 SetExplicitDeny(std::forward<ExplicitDenyT>(value));
69 return *this;
70 }
72 private:
73 ImplicitDeny m_implicitDeny;
74
75 ExplicitDeny m_explicitDeny;
76 bool m_implicitDenyHasBeenSet = false;
77 bool m_explicitDenyHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace IoT
82} // namespace Aws
AWS_IOT_API Denied & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImplicitDeny(ImplicitDenyT &&value)
Definition Denied.h:44
AWS_IOT_API Denied()=default
AWS_IOT_API Denied(Aws::Utils::Json::JsonView jsonValue)
const ImplicitDeny & GetImplicitDeny() const
Definition Denied.h:41
bool ImplicitDenyHasBeenSet() const
Definition Denied.h:42
Denied & WithImplicitDeny(ImplicitDenyT &&value)
Definition Denied.h:49
const ExplicitDeny & GetExplicitDeny() const
Definition Denied.h:59
Denied & WithExplicitDeny(ExplicitDenyT &&value)
Definition Denied.h:67
void SetExplicitDeny(ExplicitDenyT &&value)
Definition Denied.h:62
bool ExplicitDenyHasBeenSet() const
Definition Denied.h:60
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue