/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the guardduty-2017-11-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.GuardDuty.Model { /// /// Details about the Kubernetes workload involved in a Kubernetes finding. /// public partial class KubernetesWorkloadDetails { private List _containers = new List(); private bool? _hostNetwork; private string _name; private string _awsNamespace; private string _type; private string _uid; private List _volumes = new List(); /// /// Gets and sets the property Containers. /// /// Containers running as part of the Kubernetes workload. /// /// public List Containers { get { return this._containers; } set { this._containers = value; } } // Check to see if Containers property is set internal bool IsSetContainers() { return this._containers != null && this._containers.Count > 0; } /// /// Gets and sets the property HostNetwork. /// /// Whether the hostNetwork flag is enabled for the pods included in the workload. /// /// public bool HostNetwork { get { return this._hostNetwork.GetValueOrDefault(); } set { this._hostNetwork = value; } } // Check to see if HostNetwork property is set internal bool IsSetHostNetwork() { return this._hostNetwork.HasValue; } /// /// Gets and sets the property Name. /// /// Kubernetes workload name. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Namespace. /// /// Kubernetes namespace that the workload is part of. /// /// public string Namespace { get { return this._awsNamespace; } set { this._awsNamespace = value; } } // Check to see if Namespace property is set internal bool IsSetNamespace() { return this._awsNamespace != null; } /// /// Gets and sets the property Type. /// /// Kubernetes workload type (e.g. Pod, Deployment, etc.). /// /// public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property Uid. /// /// Kubernetes workload ID. /// /// public string Uid { get { return this._uid; } set { this._uid = value; } } // Check to see if Uid property is set internal bool IsSetUid() { return this._uid != null; } /// /// Gets and sets the property Volumes. /// /// Volumes used by the Kubernetes workload. /// /// public List Volumes { get { return this._volumes; } set { this._volumes = value; } } // Check to see if Volumes property is set internal bool IsSetVolumes() { return this._volumes != null && this._volumes.Count > 0; } } }