@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetEntry extends Object implements Serializable, Cloneable, StructuredPojo
An asset in AWS Data Exchange is a piece of data (S3 object) or a means of fulfilling data (Amazon Redshift datashare or Amazon API Gateway API). The asset can be a structured data file, an image file, or some other data file that can be stored as an S3 object, an Amazon API Gateway API, or an Amazon Redshift datashare (Preview). When you create an import job for your files, API Gateway APIs, or Amazon Redshift datashares, you create an asset in AWS Data Exchange.
Constructor and Description |
---|
AssetEntry() |
Modifier and Type | Method and Description |
---|---|
AssetEntry |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN for the asset.
|
AssetDetails |
getAssetDetails()
Information about the asset.
|
String |
getAssetType()
The type of asset that is added to a data set.
|
Date |
getCreatedAt()
The date and time that the asset was created, in ISO 8601 format.
|
String |
getDataSetId()
The unique identifier for the data set associated with this asset.
|
String |
getId()
The unique identifier for the asset.
|
String |
getName()
The name of the asset.
|
String |
getRevisionId()
The unique identifier for the revision associated with this asset.
|
String |
getSourceId()
The asset ID of the owned asset corresponding to the entitled asset being viewed.
|
Date |
getUpdatedAt()
The date and time that the asset was last updated, in ISO 8601 format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN for the asset.
|
void |
setAssetDetails(AssetDetails assetDetails)
Information about the asset.
|
void |
setAssetType(String assetType)
The type of asset that is added to a data set.
|
void |
setCreatedAt(Date createdAt)
The date and time that the asset was created, in ISO 8601 format.
|
void |
setDataSetId(String dataSetId)
The unique identifier for the data set associated with this asset.
|
void |
setId(String id)
The unique identifier for the asset.
|
void |
setName(String name)
The name of the asset.
|
void |
setRevisionId(String revisionId)
The unique identifier for the revision associated with this asset.
|
void |
setSourceId(String sourceId)
The asset ID of the owned asset corresponding to the entitled asset being viewed.
|
void |
setUpdatedAt(Date updatedAt)
The date and time that the asset was last updated, in ISO 8601 format.
|
String |
toString()
Returns a string representation of this object.
|
AssetEntry |
withArn(String arn)
The ARN for the asset.
|
AssetEntry |
withAssetDetails(AssetDetails assetDetails)
Information about the asset.
|
AssetEntry |
withAssetType(AssetType assetType)
The type of asset that is added to a data set.
|
AssetEntry |
withAssetType(String assetType)
The type of asset that is added to a data set.
|
AssetEntry |
withCreatedAt(Date createdAt)
The date and time that the asset was created, in ISO 8601 format.
|
AssetEntry |
withDataSetId(String dataSetId)
The unique identifier for the data set associated with this asset.
|
AssetEntry |
withId(String id)
The unique identifier for the asset.
|
AssetEntry |
withName(String name)
The name of the asset.
|
AssetEntry |
withRevisionId(String revisionId)
The unique identifier for the revision associated with this asset.
|
AssetEntry |
withSourceId(String sourceId)
The asset ID of the owned asset corresponding to the entitled asset being viewed.
|
AssetEntry |
withUpdatedAt(Date updatedAt)
The date and time that the asset was last updated, in ISO 8601 format.
|
public void setArn(String arn)
The ARN for the asset.
arn
- The ARN for the asset.public String getArn()
The ARN for the asset.
public AssetEntry withArn(String arn)
The ARN for the asset.
arn
- The ARN for the asset.public void setAssetDetails(AssetDetails assetDetails)
Information about the asset.
assetDetails
- Information about the asset.public AssetDetails getAssetDetails()
Information about the asset.
public AssetEntry withAssetDetails(AssetDetails assetDetails)
Information about the asset.
assetDetails
- Information about the asset.public void setAssetType(String assetType)
The type of asset that is added to a data set.
assetType
- The type of asset that is added to a data set.AssetType
public String getAssetType()
The type of asset that is added to a data set.
AssetType
public AssetEntry withAssetType(String assetType)
The type of asset that is added to a data set.
assetType
- The type of asset that is added to a data set.AssetType
public AssetEntry withAssetType(AssetType assetType)
The type of asset that is added to a data set.
assetType
- The type of asset that is added to a data set.AssetType
public void setCreatedAt(Date createdAt)
The date and time that the asset was created, in ISO 8601 format.
createdAt
- The date and time that the asset was created, in ISO 8601 format.public Date getCreatedAt()
The date and time that the asset was created, in ISO 8601 format.
public AssetEntry withCreatedAt(Date createdAt)
The date and time that the asset was created, in ISO 8601 format.
createdAt
- The date and time that the asset was created, in ISO 8601 format.public void setDataSetId(String dataSetId)
The unique identifier for the data set associated with this asset.
dataSetId
- The unique identifier for the data set associated with this asset.public String getDataSetId()
The unique identifier for the data set associated with this asset.
public AssetEntry withDataSetId(String dataSetId)
The unique identifier for the data set associated with this asset.
dataSetId
- The unique identifier for the data set associated with this asset.public void setId(String id)
The unique identifier for the asset.
id
- The unique identifier for the asset.public String getId()
The unique identifier for the asset.
public AssetEntry withId(String id)
The unique identifier for the asset.
id
- The unique identifier for the asset.public void setName(String name)
The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.
name
- The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When
exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon
API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the
datashare name is used as the asset name.public String getName()
The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.
public AssetEntry withName(String name)
The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.
name
- The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When
exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon
API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the
datashare name is used as the asset name.public void setRevisionId(String revisionId)
The unique identifier for the revision associated with this asset.
revisionId
- The unique identifier for the revision associated with this asset.public String getRevisionId()
The unique identifier for the revision associated with this asset.
public AssetEntry withRevisionId(String revisionId)
The unique identifier for the revision associated with this asset.
revisionId
- The unique identifier for the revision associated with this asset.public void setSourceId(String sourceId)
The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.
sourceId
- The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is
returned when an asset owner is viewing the entitled copy of its owned asset.public String getSourceId()
The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.
public AssetEntry withSourceId(String sourceId)
The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.
sourceId
- The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is
returned when an asset owner is viewing the entitled copy of its owned asset.public void setUpdatedAt(Date updatedAt)
The date and time that the asset was last updated, in ISO 8601 format.
updatedAt
- The date and time that the asset was last updated, in ISO 8601 format.public Date getUpdatedAt()
The date and time that the asset was last updated, in ISO 8601 format.
public AssetEntry withUpdatedAt(Date updatedAt)
The date and time that the asset was last updated, in ISO 8601 format.
updatedAt
- The date and time that the asset was last updated, in ISO 8601 format.public String toString()
toString
in class Object
Object.toString()
public AssetEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.