/* * 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, including its format, namespace, and name. *

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

* The format of the package. *

*/ private String format; /** *

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

* */ private String namespace; /** *

* The name of the package. *

*/ private String packageValue; /** *

* A * PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin * restrictions. *

*/ private PackageOriginConfiguration originConfiguration; /** *

* The format of the package. *

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

* The format of the package. *

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

* The format of the package. *

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

* The format of the package. *

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

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

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

*