/* * Copyright 2018-2023 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. */ package com.amazonaws.services.codeartifact.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Details about a package version. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PackageVersionDescription implements Serializable, Cloneable, StructuredPojo { /** *

* The format of the package version. *

*/ private String format; /** *

* The namespace of the package version. The package version component that specifies its namespace depends on its * type. For example: *

* */ private String namespace; /** *

* The name of the requested package. *

*/ private String packageName; /** *

* 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. *

*/ private String displayName; /** *

* The version of the package. *

*/ private String version; /** *

* 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. *

*/ private String summary; /** *

* The homepage associated with the package. *

*/ private String homePage; /** *

* The repository for the source code in the package version, or the source code used to build it. *

*/ private String sourceCodeRepository; /** *

* A timestamp that contains the date and time the package version was published. *

*/ private java.util.Date publishedTime; /** *

* Information about licenses associated with the package version. *

*/ private java.util.List licenses; /** *

* The revision of the package version. *

*/ private String revision; /** *

* A string that contains the status of the package version. *

*/ private String status; /** *

* A * PackageVersionOrigin object that contains information about how the package version was added to the * repository. *

*/ private PackageVersionOrigin origin; /** *

* The format of the package version. *

* * @param format * The format of the package version. * @see PackageFormat */ public void setFormat(String format) { this.format = format; } /** *

* The format of the package version. *

* * @return The format of the package version. * @see PackageFormat */ public String getFormat() { return this.format; } /** *

* The format of the package version. *

* * @param format * The format of the package version. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageFormat */ public PackageVersionDescription withFormat(String format) { setFormat(format); return this; } /** *

* The format of the package version. *

* * @param format * The format of the package version. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageFormat */ public PackageVersionDescription withFormat(PackageFormat format) { this.format = format.toString(); return this; } /** *

* The namespace of the package version. The package version component that specifies its namespace depends on its * type. For example: *

* * * @param namespace * The namespace of the package version. The package version component that specifies its namespace depends * on its type. For example:

*