AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
KubernetesPermissionCheckedDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API KubernetesPermissionCheckedDetails() = default;
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetVerb() const { return m_verb; }
42 inline bool VerbHasBeenSet() const { return m_verbHasBeenSet; }
43 template <typename VerbT = Aws::String>
44 void SetVerb(VerbT&& value) {
45 m_verbHasBeenSet = true;
46 m_verb = std::forward<VerbT>(value);
47 }
48 template <typename VerbT = Aws::String>
50 SetVerb(std::forward<VerbT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetResource() const { return m_resource; }
61 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
62 template <typename ResourceT = Aws::String>
63 void SetResource(ResourceT&& value) {
64 m_resourceHasBeenSet = true;
65 m_resource = std::forward<ResourceT>(value);
66 }
67 template <typename ResourceT = Aws::String>
69 SetResource(std::forward<ResourceT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetNamespace() const { return m_namespace; }
79 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
80 template <typename NamespaceT = Aws::String>
81 void SetNamespace(NamespaceT&& value) {
82 m_namespaceHasBeenSet = true;
83 m_namespace = std::forward<NamespaceT>(value);
84 }
85 template <typename NamespaceT = Aws::String>
87 SetNamespace(std::forward<NamespaceT>(value));
88 return *this;
89 }
91
93
97 inline bool GetAllowed() const { return m_allowed; }
98 inline bool AllowedHasBeenSet() const { return m_allowedHasBeenSet; }
99 inline void SetAllowed(bool value) {
100 m_allowedHasBeenSet = true;
101 m_allowed = value;
102 }
104 SetAllowed(value);
105 return *this;
106 }
108 private:
109 Aws::String m_verb;
110
111 Aws::String m_resource;
112
113 Aws::String m_namespace;
114
115 bool m_allowed{false};
116 bool m_verbHasBeenSet = false;
117 bool m_resourceHasBeenSet = false;
118 bool m_namespaceHasBeenSet = false;
119 bool m_allowedHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace GuardDuty
124} // namespace Aws
KubernetesPermissionCheckedDetails & WithNamespace(NamespaceT &&value)
AWS_GUARDDUTY_API KubernetesPermissionCheckedDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
KubernetesPermissionCheckedDetails & WithVerb(VerbT &&value)
AWS_GUARDDUTY_API KubernetesPermissionCheckedDetails()=default
KubernetesPermissionCheckedDetails & WithResource(ResourceT &&value)
AWS_GUARDDUTY_API KubernetesPermissionCheckedDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue