@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 is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its 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
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its 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
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its 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
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its 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
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its 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.