@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PackageSummary extends Object implements Serializable, Cloneable, StructuredPojo
Details about a package, including its format, namespace, and name.
Constructor and Description |
---|
PackageSummary() |
Modifier and Type | Method and Description |
---|---|
PackageSummary |
clone() |
boolean |
equals(Object obj) |
String |
getFormat()
The format of the package.
|
String |
getNamespace()
The namespace of the package.
|
PackageOriginConfiguration |
getOriginConfiguration()
A
PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin
restrictions.
|
String |
getPackage()
The name of the package.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFormat(String format)
The format of the package.
|
void |
setNamespace(String namespace)
The namespace of the package.
|
void |
setOriginConfiguration(PackageOriginConfiguration originConfiguration)
A
PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin
restrictions.
|
void |
setPackage(String packageValue)
The name of the package.
|
String |
toString()
Returns a string representation of this object.
|
PackageSummary |
withFormat(PackageFormat format)
The format of the package.
|
PackageSummary |
withFormat(String format)
The format of the package.
|
PackageSummary |
withNamespace(String namespace)
The namespace of the package.
|
PackageSummary |
withOriginConfiguration(PackageOriginConfiguration originConfiguration)
A
PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin
restrictions.
|
PackageSummary |
withPackage(String packageValue)
The name of the package.
|
public void setFormat(String format)
The format of the package.
format
- The format of the package.PackageFormat
public String getFormat()
The format of the package.
PackageFormat
public PackageSummary withFormat(String format)
The format of the package.
format
- The format of the package.PackageFormat
public PackageSummary withFormat(PackageFormat format)
The format of the package.
format
- The format of the package.PackageFormat
public void setNamespace(String namespace)
The namespace of the package. The package 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 or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
namespace
- The namespace of the package. The package 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 or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
public String getNamespace()
The namespace of the package. The package 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 or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
public PackageSummary withNamespace(String namespace)
The namespace of the package. The package 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 or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
namespace
- The namespace of the package. The package 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 or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
public void setPackage(String packageValue)
The name of the package.
packageValue
- The name of the package.public String getPackage()
The name of the package.
public PackageSummary withPackage(String packageValue)
The name of the package.
packageValue
- The name of the package.public void setOriginConfiguration(PackageOriginConfiguration originConfiguration)
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
originConfiguration
- A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package
origin restrictions.public PackageOriginConfiguration getOriginConfiguration()
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
public PackageSummary withOriginConfiguration(PackageOriginConfiguration originConfiguration)
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
originConfiguration
- A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package
origin restrictions.public String toString()
toString
in class Object
Object.toString()
public PackageSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.