@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. The ListPackages operation
returns a list of PackageSummary
objects.
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.
|
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 |
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 |
withPackage(String packageValue)
The name of the package.
|
public void setFormat(String format)
The format of the package. Valid values are:
npm
pypi
maven
format
- The format of the package. Valid values are:
npm
pypi
maven
PackageFormat
public String getFormat()
The format of the package. Valid values are:
npm
pypi
maven
npm
pypi
maven
PackageFormat
public PackageSummary withFormat(String format)
The format of the package. Valid values are:
npm
pypi
maven
format
- The format of the package. Valid values are:
npm
pypi
maven
PackageFormat
public PackageSummary withFormat(PackageFormat format)
The format of the package. Valid values are:
npm
pypi
maven
format
- The format of the package. Valid values are:
npm
pypi
maven
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 is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages 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 is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages 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 is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages do not have a namespace.
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages 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 is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages 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 is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages 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 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.