/*
* 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
{
///
/// This is the response object from the ListPackageVersions operation.
///
public partial class ListPackageVersionsResponse : AmazonWebServiceResponse
{
private string _defaultDisplayVersion;
private PackageFormat _format;
private string _awsNamespace;
private string _nextToken;
private string _package;
private List _versions = new List();
///
/// Gets and sets the property DefaultDisplayVersion.
///
/// The default package version to display. This depends on the package format:
///
/// -
///
/// For Maven and PyPI packages, it's the most recently published package version.
///
///
-
///
/// For npm packages, it's the version referenced by the
latest
tag. If
/// the latest
tag is not set, it's the most recently published package version.
///
///
///
///
[AWSProperty(Min=1, Max=255)]
public string DefaultDisplayVersion
{
get { return this._defaultDisplayVersion; }
set { this._defaultDisplayVersion = value; }
}
// Check to see if DefaultDisplayVersion property is set
internal bool IsSetDefaultDisplayVersion()
{
return this._defaultDisplayVersion != null;
}
///
/// Gets and sets the property Format.
///
/// A format of the package.
///
///
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 Namespace.
///
/// The namespace of the package that contains the requested package versions. The package
/// component that specifies its namespace depends on its type. For example:
///
/// -
///
/// The namespace of a Maven package is its
groupId
.
///
/// -
///
/// The namespace of an npm package is its
scope
.
///
/// -
///
/// Python and NuGet packages do not contain a corresponding component, packages of those
/// formats do not have a 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 NextToken.
///
/// If there are additional results, this is the token for the next set of results.
///
///
[AWSProperty(Min=1, Max=2000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property Package.
///
/// The name of the package.
///
///
[AWSProperty(Min=1, Max=255)]
public string Package
{
get { return this._package; }
set { this._package = value; }
}
// Check to see if Package property is set
internal bool IsSetPackage()
{
return this._package != null;
}
///
/// Gets and sets the property Versions.
///
/// The returned list of PackageVersionSummary
/// objects.
///
///
public List Versions
{
get { return this._versions; }
set { this._versions = value; }
}
// Check to see if Versions property is set
internal bool IsSetVersions()
{
return this._versions != null && this._versions.Count > 0;
}
}
}