AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetVerb(const Aws::String& value) { m_verbHasBeenSet = true; m_verb = value; }
50 inline void SetVerb(Aws::String&& value) { m_verbHasBeenSet = true; m_verb = std::move(value); }
51 inline void SetVerb(const char* value) { m_verbHasBeenSet = true; m_verb.assign(value); }
52 inline KubernetesPermissionCheckedDetails& WithVerb(const Aws::String& value) { SetVerb(value); return *this;}
53 inline KubernetesPermissionCheckedDetails& WithVerb(Aws::String&& value) { SetVerb(std::move(value)); return *this;}
54 inline KubernetesPermissionCheckedDetails& WithVerb(const char* value) { SetVerb(value); return *this;}
56
58
62 inline const Aws::String& GetResource() const{ return m_resource; }
63 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
64 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
65 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
66 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
67 inline KubernetesPermissionCheckedDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;}
68 inline KubernetesPermissionCheckedDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
69 inline KubernetesPermissionCheckedDetails& WithResource(const char* value) { SetResource(value); return *this;}
71
73
76 inline const Aws::String& GetNamespace() const{ return m_namespace; }
77 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
78 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
79 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
80 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
81 inline KubernetesPermissionCheckedDetails& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
82 inline KubernetesPermissionCheckedDetails& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
83 inline KubernetesPermissionCheckedDetails& WithNamespace(const char* value) { SetNamespace(value); return *this;}
85
87
91 inline bool GetAllowed() const{ return m_allowed; }
92 inline bool AllowedHasBeenSet() const { return m_allowedHasBeenSet; }
93 inline void SetAllowed(bool value) { m_allowedHasBeenSet = true; m_allowed = value; }
94 inline KubernetesPermissionCheckedDetails& WithAllowed(bool value) { SetAllowed(value); return *this;}
96 private:
97
98 Aws::String m_verb;
99 bool m_verbHasBeenSet = false;
100
101 Aws::String m_resource;
102 bool m_resourceHasBeenSet = false;
103
104 Aws::String m_namespace;
105 bool m_namespaceHasBeenSet = false;
106
107 bool m_allowed;
108 bool m_allowedHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace GuardDuty
113} // namespace Aws
KubernetesPermissionCheckedDetails & WithVerb(const char *value)
KubernetesPermissionCheckedDetails & WithResource(Aws::String &&value)
KubernetesPermissionCheckedDetails & WithResource(const char *value)
KubernetesPermissionCheckedDetails & WithResource(const Aws::String &value)
KubernetesPermissionCheckedDetails & WithNamespace(const Aws::String &value)
AWS_GUARDDUTY_API KubernetesPermissionCheckedDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
KubernetesPermissionCheckedDetails & WithVerb(const Aws::String &value)
KubernetesPermissionCheckedDetails & WithVerb(Aws::String &&value)
KubernetesPermissionCheckedDetails & WithNamespace(const char *value)
KubernetesPermissionCheckedDetails & WithNamespace(Aws::String &&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