/*
* 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 sagemaker-2017-07-24.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.SageMaker.Model
{
///
/// A version of a SageMaker Image
. A version represents an existing container
/// image.
///
public partial class ImageVersion
{
private DateTime? _creationTime;
private string _failureReason;
private string _imageArn;
private string _imageVersionArn;
private ImageVersionStatus _imageVersionStatus;
private DateTime? _lastModifiedTime;
private int? _version;
///
/// Gets and sets the property CreationTime.
///
/// When the version was created.
///
///
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property FailureReason.
///
/// When a create or delete operation fails, the reason for the failure.
///
///
[AWSProperty(Max=1024)]
public string FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property ImageArn.
///
/// The ARN of the image the version is based on.
///
///
[AWSProperty(Required=true, Max=256)]
public string ImageArn
{
get { return this._imageArn; }
set { this._imageArn = value; }
}
// Check to see if ImageArn property is set
internal bool IsSetImageArn()
{
return this._imageArn != null;
}
///
/// Gets and sets the property ImageVersionArn.
///
/// The ARN of the version.
///
///
[AWSProperty(Required=true, Max=256)]
public string ImageVersionArn
{
get { return this._imageVersionArn; }
set { this._imageVersionArn = value; }
}
// Check to see if ImageVersionArn property is set
internal bool IsSetImageVersionArn()
{
return this._imageVersionArn != null;
}
///
/// Gets and sets the property ImageVersionStatus.
///
/// The status of the version.
///
///
[AWSProperty(Required=true)]
public ImageVersionStatus ImageVersionStatus
{
get { return this._imageVersionStatus; }
set { this._imageVersionStatus = value; }
}
// Check to see if ImageVersionStatus property is set
internal bool IsSetImageVersionStatus()
{
return this._imageVersionStatus != null;
}
///
/// Gets and sets the property LastModifiedTime.
///
/// When the version was last modified.
///
///
[AWSProperty(Required=true)]
public DateTime LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
///
/// Gets and sets the property Version.
///
/// The version number.
///
///
[AWSProperty(Required=true, Min=0)]
public int Version
{
get { return this._version.GetValueOrDefault(); }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version.HasValue;
}
}
}