/*
* 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 greengrassv2-2020-11-30.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.GreengrassV2.Model
{
///
/// Contains information about the latest version of a component.
///
public partial class ComponentLatestVersion
{
private string _arn;
private string _componentVersion;
private DateTime? _creationTimestamp;
private string _description;
private List _platforms = new List();
private string _publisher;
///
/// Gets and sets the property Arn.
///
/// The ARN
/// of the component version.
///
///
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property ComponentVersion.
///
/// The version of the component.
///
///
[AWSProperty(Min=1, Max=64)]
public string ComponentVersion
{
get { return this._componentVersion; }
set { this._componentVersion = value; }
}
// Check to see if ComponentVersion property is set
internal bool IsSetComponentVersion()
{
return this._componentVersion != null;
}
///
/// Gets and sets the property CreationTimestamp.
///
/// The time at which the component was created, expressed in ISO 8601 format.
///
///
public DateTime CreationTimestamp
{
get { return this._creationTimestamp.GetValueOrDefault(); }
set { this._creationTimestamp = value; }
}
// Check to see if CreationTimestamp property is set
internal bool IsSetCreationTimestamp()
{
return this._creationTimestamp.HasValue;
}
///
/// Gets and sets the property Description.
///
/// The description of the component version.
///
///
[AWSProperty(Min=1)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property Platforms.
///
/// The platforms that the component version supports.
///
///
public List Platforms
{
get { return this._platforms; }
set { this._platforms = value; }
}
// Check to see if Platforms property is set
internal bool IsSetPlatforms()
{
return this._platforms != null && this._platforms.Count > 0;
}
///
/// Gets and sets the property Publisher.
///
/// The publisher of the component version.
///
///
[AWSProperty(Min=1)]
public string Publisher
{
get { return this._publisher; }
set { this._publisher = value; }
}
// Check to see if Publisher property is set
internal bool IsSetPublisher()
{
return this._publisher != null;
}
}
}