Class UploadArchiveResult
- java.lang.Object
-
- com.amazonaws.services.glacier.model.UploadArchiveResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class UploadArchiveResult extends Object implements Serializable, Cloneable
Contains the Amazon Glacier response to your request.
For information about the underlying REST API, go to Upload Archive. For conceptual information, go to Working with Archives in Amazon Glacier.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadArchiveResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadArchiveResultclone()booleanequals(Object obj)StringgetArchiveId()The ID of the archive.StringgetChecksum()The checksum of the archive computed by Amazon Glacier.StringgetLocation()The relative URI path of the newly added archive resource.inthashCode()voidsetArchiveId(String archiveId)The ID of the archive.voidsetChecksum(String checksum)The checksum of the archive computed by Amazon Glacier.voidsetLocation(String location)The relative URI path of the newly added archive resource.StringtoString()Returns a string representation of this object; useful for testing and debugging.UploadArchiveResultwithArchiveId(String archiveId)The ID of the archive.UploadArchiveResultwithChecksum(String checksum)The checksum of the archive computed by Amazon Glacier.UploadArchiveResultwithLocation(String location)The relative URI path of the newly added archive resource.
-
-
-
Method Detail
-
setLocation
public void setLocation(String location)
The relative URI path of the newly added archive resource.
- Parameters:
location- The relative URI path of the newly added archive resource.
-
getLocation
public String getLocation()
The relative URI path of the newly added archive resource.
- Returns:
- The relative URI path of the newly added archive resource.
-
withLocation
public UploadArchiveResult withLocation(String location)
The relative URI path of the newly added archive resource.
- Parameters:
location- The relative URI path of the newly added archive resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setChecksum
public void setChecksum(String checksum)
The checksum of the archive computed by Amazon Glacier.
- Parameters:
checksum- The checksum of the archive computed by Amazon Glacier.
-
getChecksum
public String getChecksum()
The checksum of the archive computed by Amazon Glacier.
- Returns:
- The checksum of the archive computed by Amazon Glacier.
-
withChecksum
public UploadArchiveResult withChecksum(String checksum)
The checksum of the archive computed by Amazon Glacier.
- Parameters:
checksum- The checksum of the archive computed by Amazon Glacier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArchiveId
public void setArchiveId(String archiveId)
The ID of the archive. This value is also included as part of the location.
- Parameters:
archiveId- The ID of the archive. This value is also included as part of the location.
-
getArchiveId
public String getArchiveId()
The ID of the archive. This value is also included as part of the location.
- Returns:
- The ID of the archive. This value is also included as part of the location.
-
withArchiveId
public UploadArchiveResult withArchiveId(String archiveId)
The ID of the archive. This value is also included as part of the location.
- Parameters:
archiveId- The ID of the archive. This value is also included as part of the location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UploadArchiveResult clone()
-
-