/*
* 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
{
///
/// Provides summary information about a model package.
///
public partial class ModelPackageSummary
{
private DateTime? _creationTime;
private ModelApprovalStatus _modelApprovalStatus;
private string _modelPackageArn;
private string _modelPackageDescription;
private string _modelPackageGroupName;
private string _modelPackageName;
private ModelPackageStatus _modelPackageStatus;
private int? _modelPackageVersion;
///
/// Gets and sets the property CreationTime.
///
/// A timestamp that shows when the model package 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 ModelApprovalStatus.
///
/// The approval status of the model. This can be one of the following values.
///
/// -
///
///
APPROVED
- The model is approved
///
/// -
///
///
REJECTED
- The model is rejected.
///
/// -
///
///
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
///
///
///
public ModelApprovalStatus ModelApprovalStatus
{
get { return this._modelApprovalStatus; }
set { this._modelApprovalStatus = value; }
}
// Check to see if ModelApprovalStatus property is set
internal bool IsSetModelApprovalStatus()
{
return this._modelApprovalStatus != null;
}
///
/// Gets and sets the property ModelPackageArn.
///
/// The Amazon Resource Name (ARN) of the model package.
///
///
[AWSProperty(Required=true, Min=1, Max=2048)]
public string ModelPackageArn
{
get { return this._modelPackageArn; }
set { this._modelPackageArn = value; }
}
// Check to see if ModelPackageArn property is set
internal bool IsSetModelPackageArn()
{
return this._modelPackageArn != null;
}
///
/// Gets and sets the property ModelPackageDescription.
///
/// A brief description of the model package.
///
///
[AWSProperty(Max=1024)]
public string ModelPackageDescription
{
get { return this._modelPackageDescription; }
set { this._modelPackageDescription = value; }
}
// Check to see if ModelPackageDescription property is set
internal bool IsSetModelPackageDescription()
{
return this._modelPackageDescription != null;
}
///
/// Gets and sets the property ModelPackageGroupName.
///
/// If the model package is a versioned model, the model group that the versioned model
/// belongs to.
///
///
[AWSProperty(Min=1, Max=63)]
public string ModelPackageGroupName
{
get { return this._modelPackageGroupName; }
set { this._modelPackageGroupName = value; }
}
// Check to see if ModelPackageGroupName property is set
internal bool IsSetModelPackageGroupName()
{
return this._modelPackageGroupName != null;
}
///
/// Gets and sets the property ModelPackageName.
///
/// The name of the model package.
///
///
[AWSProperty(Required=true, Min=1, Max=63)]
public string ModelPackageName
{
get { return this._modelPackageName; }
set { this._modelPackageName = value; }
}
// Check to see if ModelPackageName property is set
internal bool IsSetModelPackageName()
{
return this._modelPackageName != null;
}
///
/// Gets and sets the property ModelPackageStatus.
///
/// The overall status of the model package.
///
///
[AWSProperty(Required=true)]
public ModelPackageStatus ModelPackageStatus
{
get { return this._modelPackageStatus; }
set { this._modelPackageStatus = value; }
}
// Check to see if ModelPackageStatus property is set
internal bool IsSetModelPackageStatus()
{
return this._modelPackageStatus != null;
}
///
/// Gets and sets the property ModelPackageVersion.
///
/// If the model package is a versioned model, the version of the model.
///
///
[AWSProperty(Min=1)]
public int ModelPackageVersion
{
get { return this._modelPackageVersion.GetValueOrDefault(); }
set { this._modelPackageVersion = value; }
}
// Check to see if ModelPackageVersion property is set
internal bool IsSetModelPackageVersion()
{
return this._modelPackageVersion.HasValue;
}
}
}