/*
* 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 codeartifact-2018-09-22.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.CodeArtifact.Model
{
///
/// Details about a package version, including its status, version, and revision. The
/// ListPackageVersions
/// operation returns a list of PackageVersionSummary
objects.
///
public partial class PackageVersionSummary
{
private PackageVersionOrigin _origin;
private string _revision;
private PackageVersionStatus _status;
private string _version;
///
/// Gets and sets the property Origin.
///
/// A PackageVersionOrigin
/// object that contains information about how the package version was added to the repository.
///
///
public PackageVersionOrigin Origin
{
get { return this._origin; }
set { this._origin = value; }
}
// Check to see if Origin property is set
internal bool IsSetOrigin()
{
return this._origin != null;
}
///
/// Gets and sets the property Revision.
///
/// The revision associated with a package version.
///
///
[AWSProperty(Min=1, Max=50)]
public string Revision
{
get { return this._revision; }
set { this._revision = value; }
}
// Check to see if Revision property is set
internal bool IsSetRevision()
{
return this._revision != null;
}
///
/// Gets and sets the property Status.
///
/// A string that contains the status of the package version. It can be one of the following:
///
///
///
[AWSProperty(Required=true)]
public PackageVersionStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Version.
///
/// Information about a package version.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
}