AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
KubernetesWorkload.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/KubernetesResourcesTypes.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
32 public:
33 AWS_GUARDDUTY_API KubernetesWorkload() = default;
34 AWS_GUARDDUTY_API KubernetesWorkload(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Aws::String>& GetContainerUids() const { return m_containerUids; }
44 inline bool ContainerUidsHasBeenSet() const { return m_containerUidsHasBeenSet; }
45 template <typename ContainerUidsT = Aws::Vector<Aws::String>>
46 void SetContainerUids(ContainerUidsT&& value) {
47 m_containerUidsHasBeenSet = true;
48 m_containerUids = std::forward<ContainerUidsT>(value);
49 }
50 template <typename ContainerUidsT = Aws::Vector<Aws::String>>
51 KubernetesWorkload& WithContainerUids(ContainerUidsT&& value) {
52 SetContainerUids(std::forward<ContainerUidsT>(value));
53 return *this;
54 }
55 template <typename ContainerUidsT = Aws::String>
56 KubernetesWorkload& AddContainerUids(ContainerUidsT&& value) {
57 m_containerUidsHasBeenSet = true;
58 m_containerUids.emplace_back(std::forward<ContainerUidsT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetNamespace() const { return m_namespace; }
69 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
70 template <typename NamespaceT = Aws::String>
71 void SetNamespace(NamespaceT&& value) {
72 m_namespaceHasBeenSet = true;
73 m_namespace = std::forward<NamespaceT>(value);
74 }
75 template <typename NamespaceT = Aws::String>
76 KubernetesWorkload& WithNamespace(NamespaceT&& value) {
77 SetNamespace(std::forward<NamespaceT>(value));
78 return *this;
79 }
81
83
86 inline KubernetesResourcesTypes GetKubernetesResourcesTypes() const { return m_kubernetesResourcesTypes; }
87 inline bool KubernetesResourcesTypesHasBeenSet() const { return m_kubernetesResourcesTypesHasBeenSet; }
89 m_kubernetesResourcesTypesHasBeenSet = true;
90 m_kubernetesResourcesTypes = value;
91 }
94 return *this;
95 }
97 private:
98 Aws::Vector<Aws::String> m_containerUids;
99
100 Aws::String m_namespace;
101
103 bool m_containerUidsHasBeenSet = false;
104 bool m_namespaceHasBeenSet = false;
105 bool m_kubernetesResourcesTypesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace GuardDuty
110} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesWorkload & WithNamespace(NamespaceT &&value)
KubernetesWorkload & WithKubernetesResourcesTypes(KubernetesResourcesTypes value)
KubernetesWorkload & WithContainerUids(ContainerUidsT &&value)
const Aws::Vector< Aws::String > & GetContainerUids() const
AWS_GUARDDUTY_API KubernetesWorkload & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API KubernetesWorkload()=default
KubernetesWorkload & AddContainerUids(ContainerUidsT &&value)
AWS_GUARDDUTY_API KubernetesWorkload(Aws::Utils::Json::JsonView jsonValue)
void SetContainerUids(ContainerUidsT &&value)
void SetKubernetesResourcesTypes(KubernetesResourcesTypes value)
KubernetesResourcesTypes GetKubernetesResourcesTypes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue