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

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

* A format that specifies the type 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 name; /** *

* The package origin configuration for the package. *

*/ private PackageOriginConfiguration originConfiguration; /** *

* A format that specifies the type of the package. *

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

* A format that specifies the type of the package. *

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

* A format that specifies the type of the package. *

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

* A format that specifies the type of the package. *

* * @param format * A format that specifies the type of the package. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageFormat */ public PackageDescription 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:

*