/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Container details related to a finding.
///
public partial class ContainerDetails
{
private string _containerRuntime;
private string _imageId;
private string _imageName;
private string _launchedAt;
private string _name;
private bool? _privileged;
private List _volumeMounts = new List();
///
/// Gets and sets the property ContainerRuntime.
///
/// The runtime of 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 ImageId.
///
/// The identifier of the container image related to a finding.
///
///
public string ImageId
{
get { return this._imageId; }
set { this._imageId = value; }
}
// Check to see if ImageId property is set
internal bool IsSetImageId()
{
return this._imageId != null;
}
///
/// Gets and sets the property ImageName.
///
/// The name of the container image related to a finding.
///
///
public string ImageName
{
get { return this._imageName; }
set { this._imageName = value; }
}
// Check to see if ImageName property is set
internal bool IsSetImageName()
{
return this._imageName != null;
}
///
/// Gets and sets the property LaunchedAt.
///
/// Indicates when the container started.
///
///
///
/// Uses the date-time
format specified in RFC
/// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces,
/// and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
///
///
public string LaunchedAt
{
get { return this._launchedAt; }
set { this._launchedAt = value; }
}
// Check to see if LaunchedAt property is set
internal bool IsSetLaunchedAt()
{
return this._launchedAt != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the container related to a finding.
///
///
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 Privileged.
///
/// When this parameter is true
, the container is given elevated privileges
/// on the host container instance (similar to the root user).
///
///
public bool Privileged
{
get { return this._privileged.GetValueOrDefault(); }
set { this._privileged = value; }
}
// Check to see if Privileged property is set
internal bool IsSetPrivileged()
{
return this._privileged.HasValue;
}
///
/// Gets and sets the property VolumeMounts.
///
/// Provides information about the mounting of a volume in a container.
///
///
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;
}
}
}