AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
KubernetesWorkload.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/KubernetesResourcesTypes.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_GUARDDUTY_API KubernetesWorkload() = default;
39 AWS_GUARDDUTY_API KubernetesWorkload(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetContainerUids() const { return m_containerUids; }
50 inline bool ContainerUidsHasBeenSet() const { return m_containerUidsHasBeenSet; }
51 template<typename ContainerUidsT = Aws::Vector<Aws::String>>
52 void SetContainerUids(ContainerUidsT&& value) { m_containerUidsHasBeenSet = true; m_containerUids = std::forward<ContainerUidsT>(value); }
53 template<typename ContainerUidsT = Aws::Vector<Aws::String>>
54 KubernetesWorkload& WithContainerUids(ContainerUidsT&& value) { SetContainerUids(std::forward<ContainerUidsT>(value)); return *this;}
55 template<typename ContainerUidsT = Aws::String>
56 KubernetesWorkload& AddContainerUids(ContainerUidsT&& value) { m_containerUidsHasBeenSet = true; m_containerUids.emplace_back(std::forward<ContainerUidsT>(value)); return *this; }
58
60
64 inline const Aws::String& GetNamespace() const { return m_namespace; }
65 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
66 template<typename NamespaceT = Aws::String>
67 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
68 template<typename NamespaceT = Aws::String>
69 KubernetesWorkload& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
71
73
76 inline KubernetesResourcesTypes GetKubernetesResourcesTypes() const { return m_kubernetesResourcesTypes; }
77 inline bool KubernetesResourcesTypesHasBeenSet() const { return m_kubernetesResourcesTypesHasBeenSet; }
78 inline void SetKubernetesResourcesTypes(KubernetesResourcesTypes value) { m_kubernetesResourcesTypesHasBeenSet = true; m_kubernetesResourcesTypes = value; }
81 private:
82
83 Aws::Vector<Aws::String> m_containerUids;
84 bool m_containerUidsHasBeenSet = false;
85
86 Aws::String m_namespace;
87 bool m_namespaceHasBeenSet = false;
88
90 bool m_kubernetesResourcesTypesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace GuardDuty
95} // 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