/*
* 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
{
///
/// The model card for a model displayed in the Amazon SageMaker Model Dashboard.
///
public partial class ModelDashboardModelCard
{
private UserContext _createdBy;
private DateTime? _creationTime;
private UserContext _lastModifiedBy;
private DateTime? _lastModifiedTime;
private string _modelCardArn;
private string _modelCardName;
private ModelCardStatus _modelCardStatus;
private int? _modelCardVersion;
private string _modelId;
private string _riskRating;
private ModelCardSecurityConfig _securityConfig;
private List _tags = new List();
///
/// Gets and sets the property CreatedBy.
///
public UserContext CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
///
/// Gets and sets the property CreationTime.
///
/// A timestamp that indicates when the model card was created.
///
///
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 LastModifiedBy.
///
public UserContext LastModifiedBy
{
get { return this._lastModifiedBy; }
set { this._lastModifiedBy = value; }
}
// Check to see if LastModifiedBy property is set
internal bool IsSetLastModifiedBy()
{
return this._lastModifiedBy != null;
}
///
/// Gets and sets the property LastModifiedTime.
///
/// A timestamp that indicates when the model card was last updated.
///
///
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 ModelCardArn.
///
/// The Amazon Resource Name (ARN) for a model card.
///
///
[AWSProperty(Max=256)]
public string ModelCardArn
{
get { return this._modelCardArn; }
set { this._modelCardArn = value; }
}
// Check to see if ModelCardArn property is set
internal bool IsSetModelCardArn()
{
return this._modelCardArn != null;
}
///
/// Gets and sets the property ModelCardName.
///
/// The name of a model card.
///
///
[AWSProperty(Min=1, Max=63)]
public string ModelCardName
{
get { return this._modelCardName; }
set { this._modelCardName = value; }
}
// Check to see if ModelCardName property is set
internal bool IsSetModelCardName()
{
return this._modelCardName != null;
}
///
/// Gets and sets the property ModelCardStatus.
///
/// The model card status.
///
///
public ModelCardStatus ModelCardStatus
{
get { return this._modelCardStatus; }
set { this._modelCardStatus = value; }
}
// Check to see if ModelCardStatus property is set
internal bool IsSetModelCardStatus()
{
return this._modelCardStatus != null;
}
///
/// Gets and sets the property ModelCardVersion.
///
/// The model card version.
///
///
public int ModelCardVersion
{
get { return this._modelCardVersion.GetValueOrDefault(); }
set { this._modelCardVersion = value; }
}
// Check to see if ModelCardVersion property is set
internal bool IsSetModelCardVersion()
{
return this._modelCardVersion.HasValue;
}
///
/// Gets and sets the property ModelId.
///
/// For models created in SageMaker, this is the model ARN. For models created outside
/// of SageMaker, this is a user-customized string.
///
///
public string ModelId
{
get { return this._modelId; }
set { this._modelId = value; }
}
// Check to see if ModelId property is set
internal bool IsSetModelId()
{
return this._modelId != null;
}
///
/// Gets and sets the property RiskRating.
///
/// A model card's risk rating. Can be low, medium, or high.
///
///
public string RiskRating
{
get { return this._riskRating; }
set { this._riskRating = value; }
}
// Check to see if RiskRating property is set
internal bool IsSetRiskRating()
{
return this._riskRating != null;
}
///
/// Gets and sets the property SecurityConfig.
///
/// The KMS Key ID (KMSKeyId
) for encryption of model card information.
///
///
public ModelCardSecurityConfig SecurityConfig
{
get { return this._securityConfig; }
set { this._securityConfig = value; }
}
// Check to see if SecurityConfig property is set
internal bool IsSetSecurityConfig()
{
return this._securityConfig != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags associated with a model card.
///
///
[AWSProperty(Min=0, Max=50)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}