/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about the Kubernetes workload involved in a Kubernetes
* finding.See Also:
AWS
* API Reference
Kubernetes workload name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Kubernetes workload name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Kubernetes workload name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *Kubernetes workload name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Kubernetes workload name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *Kubernetes workload name.
*/ inline KubernetesWorkloadDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Kubernetes workload name.
*/ inline KubernetesWorkloadDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Kubernetes workload name.
*/ inline KubernetesWorkloadDetails& WithName(const char* value) { SetName(value); return *this;} /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline const Aws::String& GetType() const{ return m_type; } /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline KubernetesWorkloadDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline KubernetesWorkloadDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *Kubernetes workload type (e.g. Pod, Deployment, etc.).
*/ inline KubernetesWorkloadDetails& WithType(const char* value) { SetType(value); return *this;} /** *Kubernetes workload ID.
*/ inline const Aws::String& GetUid() const{ return m_uid; } /** *Kubernetes workload ID.
*/ inline bool UidHasBeenSet() const { return m_uidHasBeenSet; } /** *Kubernetes workload ID.
*/ inline void SetUid(const Aws::String& value) { m_uidHasBeenSet = true; m_uid = value; } /** *Kubernetes workload ID.
*/ inline void SetUid(Aws::String&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); } /** *Kubernetes workload ID.
*/ inline void SetUid(const char* value) { m_uidHasBeenSet = true; m_uid.assign(value); } /** *Kubernetes workload ID.
*/ inline KubernetesWorkloadDetails& WithUid(const Aws::String& value) { SetUid(value); return *this;} /** *Kubernetes workload ID.
*/ inline KubernetesWorkloadDetails& WithUid(Aws::String&& value) { SetUid(std::move(value)); return *this;} /** *Kubernetes workload ID.
*/ inline KubernetesWorkloadDetails& WithUid(const char* value) { SetUid(value); return *this;} /** *Kubernetes namespace that the workload is part of.
*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *Kubernetes namespace that the workload is part of.
*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *Kubernetes namespace that the workload is part of.
*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *Kubernetes namespace that the workload is part of.
*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *Kubernetes namespace that the workload is part of.
*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *Kubernetes namespace that the workload is part of.
*/ inline KubernetesWorkloadDetails& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *Kubernetes namespace that the workload is part of.
*/ inline KubernetesWorkloadDetails& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *Kubernetes namespace that the workload is part of.
*/ inline KubernetesWorkloadDetails& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *Whether the hostNetwork flag is enabled for the pods included in the * workload.
*/ inline bool GetHostNetwork() const{ return m_hostNetwork; } /** *Whether the hostNetwork flag is enabled for the pods included in the * workload.
*/ inline bool HostNetworkHasBeenSet() const { return m_hostNetworkHasBeenSet; } /** *Whether the hostNetwork flag is enabled for the pods included in the * workload.
*/ inline void SetHostNetwork(bool value) { m_hostNetworkHasBeenSet = true; m_hostNetwork = value; } /** *Whether the hostNetwork flag is enabled for the pods included in the * workload.
*/ inline KubernetesWorkloadDetails& WithHostNetwork(bool value) { SetHostNetwork(value); return *this;} /** *Containers running as part of the Kubernetes workload.
*/ inline const Aws::VectorContainers running as part of the Kubernetes workload.
*/ inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; } /** *Containers running as part of the Kubernetes workload.
*/ inline void SetContainers(const Aws::VectorContainers running as part of the Kubernetes workload.
*/ inline void SetContainers(Aws::VectorContainers running as part of the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& WithContainers(const Aws::VectorContainers running as part of the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& WithContainers(Aws::VectorContainers running as part of the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& AddContainers(const Container& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; } /** *Containers running as part of the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& AddContainers(Container&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; } /** *Volumes used by the Kubernetes workload.
*/ inline const Aws::VectorVolumes used by the Kubernetes workload.
*/ inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; } /** *Volumes used by the Kubernetes workload.
*/ inline void SetVolumes(const Aws::VectorVolumes used by the Kubernetes workload.
*/ inline void SetVolumes(Aws::VectorVolumes used by the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& WithVolumes(const Aws::VectorVolumes used by the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& WithVolumes(Aws::VectorVolumes used by the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& AddVolumes(const Volume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; } /** *Volumes used by the Kubernetes workload.
*/ inline KubernetesWorkloadDetails& AddVolumes(Volume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_uid; bool m_uidHasBeenSet = false; Aws::String m_namespace; bool m_namespaceHasBeenSet = false; bool m_hostNetwork; bool m_hostNetworkHasBeenSet = false; Aws::Vector