@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribePackageResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribePackageResult() |
Modifier and Type | Method and Description |
---|---|
DescribePackageResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
DescribePackageResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
DescribePackageResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The package's ARN.
|
Date |
getCreatedTime()
When the package was created.
|
String |
getPackageId()
The package's ID.
|
String |
getPackageName()
The package's name.
|
List<String> |
getReadAccessPrincipalArns()
ARNs of accounts that have read access to the package.
|
StorageLocation |
getStorageLocation()
The package's storage location.
|
Map<String,String> |
getTags()
The package's tags.
|
List<String> |
getWriteAccessPrincipalArns()
ARNs of accounts that have write access to the package.
|
int |
hashCode() |
void |
setArn(String arn)
The package's ARN.
|
void |
setCreatedTime(Date createdTime)
When the package was created.
|
void |
setPackageId(String packageId)
The package's ID.
|
void |
setPackageName(String packageName)
The package's name.
|
void |
setReadAccessPrincipalArns(Collection<String> readAccessPrincipalArns)
ARNs of accounts that have read access to the package.
|
void |
setStorageLocation(StorageLocation storageLocation)
The package's storage location.
|
void |
setTags(Map<String,String> tags)
The package's tags.
|
void |
setWriteAccessPrincipalArns(Collection<String> writeAccessPrincipalArns)
ARNs of accounts that have write access to the package.
|
String |
toString()
Returns a string representation of this object.
|
DescribePackageResult |
withArn(String arn)
The package's ARN.
|
DescribePackageResult |
withCreatedTime(Date createdTime)
When the package was created.
|
DescribePackageResult |
withPackageId(String packageId)
The package's ID.
|
DescribePackageResult |
withPackageName(String packageName)
The package's name.
|
DescribePackageResult |
withReadAccessPrincipalArns(Collection<String> readAccessPrincipalArns)
ARNs of accounts that have read access to the package.
|
DescribePackageResult |
withReadAccessPrincipalArns(String... readAccessPrincipalArns)
ARNs of accounts that have read access to the package.
|
DescribePackageResult |
withStorageLocation(StorageLocation storageLocation)
The package's storage location.
|
DescribePackageResult |
withTags(Map<String,String> tags)
The package's tags.
|
DescribePackageResult |
withWriteAccessPrincipalArns(Collection<String> writeAccessPrincipalArns)
ARNs of accounts that have write access to the package.
|
DescribePackageResult |
withWriteAccessPrincipalArns(String... writeAccessPrincipalArns)
ARNs of accounts that have write access to the package.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArn(String arn)
The package's ARN.
arn
- The package's ARN.public String getArn()
The package's ARN.
public DescribePackageResult withArn(String arn)
The package's ARN.
arn
- The package's ARN.public void setCreatedTime(Date createdTime)
When the package was created.
createdTime
- When the package was created.public Date getCreatedTime()
When the package was created.
public DescribePackageResult withCreatedTime(Date createdTime)
When the package was created.
createdTime
- When the package was created.public void setPackageId(String packageId)
The package's ID.
packageId
- The package's ID.public String getPackageId()
The package's ID.
public DescribePackageResult withPackageId(String packageId)
The package's ID.
packageId
- The package's ID.public void setPackageName(String packageName)
The package's name.
packageName
- The package's name.public String getPackageName()
The package's name.
public DescribePackageResult withPackageName(String packageName)
The package's name.
packageName
- The package's name.public List<String> getReadAccessPrincipalArns()
ARNs of accounts that have read access to the package.
public void setReadAccessPrincipalArns(Collection<String> readAccessPrincipalArns)
ARNs of accounts that have read access to the package.
readAccessPrincipalArns
- ARNs of accounts that have read access to the package.public DescribePackageResult withReadAccessPrincipalArns(String... readAccessPrincipalArns)
ARNs of accounts that have read access to the package.
NOTE: This method appends the values to the existing list (if any). Use
setReadAccessPrincipalArns(java.util.Collection)
or
withReadAccessPrincipalArns(java.util.Collection)
if you want to override the existing values.
readAccessPrincipalArns
- ARNs of accounts that have read access to the package.public DescribePackageResult withReadAccessPrincipalArns(Collection<String> readAccessPrincipalArns)
ARNs of accounts that have read access to the package.
readAccessPrincipalArns
- ARNs of accounts that have read access to the package.public void setStorageLocation(StorageLocation storageLocation)
The package's storage location.
storageLocation
- The package's storage location.public StorageLocation getStorageLocation()
The package's storage location.
public DescribePackageResult withStorageLocation(StorageLocation storageLocation)
The package's storage location.
storageLocation
- The package's storage location.public void setTags(Map<String,String> tags)
The package's tags.
tags
- The package's tags.public DescribePackageResult withTags(Map<String,String> tags)
The package's tags.
tags
- The package's tags.public DescribePackageResult addTagsEntry(String key, String value)
public DescribePackageResult clearTagsEntries()
public List<String> getWriteAccessPrincipalArns()
ARNs of accounts that have write access to the package.
public void setWriteAccessPrincipalArns(Collection<String> writeAccessPrincipalArns)
ARNs of accounts that have write access to the package.
writeAccessPrincipalArns
- ARNs of accounts that have write access to the package.public DescribePackageResult withWriteAccessPrincipalArns(String... writeAccessPrincipalArns)
ARNs of accounts that have write access to the package.
NOTE: This method appends the values to the existing list (if any). Use
setWriteAccessPrincipalArns(java.util.Collection)
or
withWriteAccessPrincipalArns(java.util.Collection)
if you want to override the existing values.
writeAccessPrincipalArns
- ARNs of accounts that have write access to the package.public DescribePackageResult withWriteAccessPrincipalArns(Collection<String> writeAccessPrincipalArns)
ARNs of accounts that have write access to the package.
writeAccessPrincipalArns
- ARNs of accounts that have write access to the package.public String toString()
toString
in class Object
Object.toString()
public DescribePackageResult clone()