/*
* 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 of a container.
///
public partial class Container
{
private string _containerRuntime;
private string _id;
private string _image;
private string _imagePrefix;
private string _name;
private SecurityContext _securityContext;
private List _volumeMounts = new List();
///
/// Gets and sets the property ContainerRuntime.
///
/// The container runtime (such as, Docker or containerd) used to run the container.
///
///
public string ContainerRuntime
{
get { return this._containerRuntime; }
set { this._containerRuntime = value; }
}
// Check to see if ContainerRuntime property is set
internal bool IsSetContainerRuntime()
{
return this._containerRuntime != null;
}
///
/// Gets and sets the property Id.
///
/// Container ID.
///
///
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Image.
///
/// Container image.
///
///
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
///
/// Gets and sets the property ImagePrefix.
///
/// Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest
/// would be public.ecr.aws/amazonlinux. If the image name is relative and does not have
/// a slash, this field is empty.
///
///
public string ImagePrefix
{
get { return this._imagePrefix; }
set { this._imagePrefix = value; }
}
// Check to see if ImagePrefix property is set
internal bool IsSetImagePrefix()
{
return this._imagePrefix != null;
}
///
/// Gets and sets the property Name.
///
/// Container 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 SecurityContext.
///
/// Container security context.
///
///
public SecurityContext SecurityContext
{
get { return this._securityContext; }
set { this._securityContext = value; }
}
// Check to see if SecurityContext property is set
internal bool IsSetSecurityContext()
{
return this._securityContext != null;
}
///
/// Gets and sets the property VolumeMounts.
///
/// Container volume mounts.
///
///
public List VolumeMounts
{
get { return this._volumeMounts; }
set { this._volumeMounts = value; }
}
// Check to see if VolumeMounts property is set
internal bool IsSetVolumeMounts()
{
return this._volumeMounts != null && this._volumeMounts.Count > 0;
}
}
}