AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
KubernetesPermissionCheckedDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GUARDDUTY_API KubernetesPermissionCheckedDetails() = default;
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetVerb() const { return m_verb; }
48 inline bool VerbHasBeenSet() const { return m_verbHasBeenSet; }
49 template<typename VerbT = Aws::String>
50 void SetVerb(VerbT&& value) { m_verbHasBeenSet = true; m_verb = std::forward<VerbT>(value); }
51 template<typename VerbT = Aws::String>
52 KubernetesPermissionCheckedDetails& WithVerb(VerbT&& value) { SetVerb(std::forward<VerbT>(value)); return *this;}
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) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
64 template<typename ResourceT = Aws::String>
65 KubernetesPermissionCheckedDetails& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
67
69
72 inline const Aws::String& GetNamespace() const { return m_namespace; }
73 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
74 template<typename NamespaceT = Aws::String>
75 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
76 template<typename NamespaceT = Aws::String>
77 KubernetesPermissionCheckedDetails& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
79
81
85 inline bool GetAllowed() const { return m_allowed; }
86 inline bool AllowedHasBeenSet() const { return m_allowedHasBeenSet; }
87 inline void SetAllowed(bool value) { m_allowedHasBeenSet = true; m_allowed = value; }
88 inline KubernetesPermissionCheckedDetails& WithAllowed(bool value) { SetAllowed(value); return *this;}
90 private:
91
92 Aws::String m_verb;
93 bool m_verbHasBeenSet = false;
94
95 Aws::String m_resource;
96 bool m_resourceHasBeenSet = false;
97
98 Aws::String m_namespace;
99 bool m_namespaceHasBeenSet = false;
100
101 bool m_allowed{false};
102 bool m_allowedHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace GuardDuty
107} // 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