/*
* 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.
///
public partial class PackageVersionDescription
{
private string _displayName;
private PackageFormat _format;
private string _homePage;
private List _licenses = new List();
private string _awsNamespace;
private PackageVersionOrigin _origin;
private string _packageName;
private DateTime? _publishedTime;
private string _revision;
private string _sourceCodeRepository;
private PackageVersionStatus _status;
private string _summary;
private string _version;
///
/// Gets and sets the property DisplayName.
///
/// The name of the package that is displayed. The displayName
varies depending
/// on the package version's format. For example, if an npm package is named ui
,
/// is in the namespace vue
, and has the format npm
, then the
/// displayName
is @vue/ui
.
///
///
[AWSProperty(Min=1, Max=255)]
public string DisplayName
{
get { return this._displayName; }
set { this._displayName = value; }
}
// Check to see if DisplayName property is set
internal bool IsSetDisplayName()
{
return this._displayName != null;
}
///
/// Gets and sets the property Format.
///
/// The format of the package version.
///
///
public PackageFormat Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
///
/// Gets and sets the property HomePage.
///
/// The homepage associated with the package.
///
///
public string HomePage
{
get { return this._homePage; }
set { this._homePage = value; }
}
// Check to see if HomePage property is set
internal bool IsSetHomePage()
{
return this._homePage != null;
}
///
/// Gets and sets the property Licenses.
///
/// Information about licenses associated with the package version.
///
///
public List Licenses
{
get { return this._licenses; }
set { this._licenses = value; }
}
// Check to see if Licenses property is set
internal bool IsSetLicenses()
{
return this._licenses != null && this._licenses.Count > 0;
}
///
/// Gets and sets the property Namespace.
///
/// The namespace of the package version. The package version component that specifies
/// its namespace depends on its type. For example:
///
/// -
///
/// The namespace of a Maven package version is its
groupId
.
///
/// -
///
/// The namespace of an npm package version is its
scope
.
///
/// -
///
/// Python and NuGet package versions do not contain a corresponding component, package
/// versions of those formats do not have a namespace.
///
///
-
///
/// The namespace of a generic package is its
namespace
.
///
///
///
[AWSProperty(Min=1, Max=255)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
///
/// 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 PackageName.
///
/// The name of the requested package.
///
///
[AWSProperty(Min=1, Max=255)]
public string PackageName
{
get { return this._packageName; }
set { this._packageName = value; }
}
// Check to see if PackageName property is set
internal bool IsSetPackageName()
{
return this._packageName != null;
}
///
/// Gets and sets the property PublishedTime.
///
/// A timestamp that contains the date and time the package version was published.
///
///
public DateTime PublishedTime
{
get { return this._publishedTime.GetValueOrDefault(); }
set { this._publishedTime = value; }
}
// Check to see if PublishedTime property is set
internal bool IsSetPublishedTime()
{
return this._publishedTime.HasValue;
}
///
/// Gets and sets the property Revision.
///
/// The revision of the 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 SourceCodeRepository.
///
/// The repository for the source code in the package version, or the source code used
/// to build it.
///
///
public string SourceCodeRepository
{
get { return this._sourceCodeRepository; }
set { this._sourceCodeRepository = value; }
}
// Check to see if SourceCodeRepository property is set
internal bool IsSetSourceCodeRepository()
{
return this._sourceCodeRepository != null;
}
///
/// Gets and sets the property Status.
///
/// A string that contains the status of the package version.
///
///
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 Summary.
///
/// A summary of the package version. The summary is extracted from the package. The
/// information in and detail level of the summary depends on the package version's format.
///
///
///
public string Summary
{
get { return this._summary; }
set { this._summary = value; }
}
// Check to see if Summary property is set
internal bool IsSetSummary()
{
return this._summary != null;
}
///
/// Gets and sets the property Version.
///
/// The version of the package.
///
///
[AWSProperty(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;
}
}
}