* An identifier for a specific request to create an export. *
*/ private String exportId; /** ** A description of the type of resource that was exported, either a bot or a bot locale. *
*/ private ExportResourceSpecification resourceSpecification; /** ** The file format used for the bot or bot locale definition files. *
*/ private String fileFormat; /** *
* The status of the export. When the status is Completed
, you can use the DescribeExport operation
* to get the pre-signed S3 URL link to your exported bot or bot locale.
*
* The date and time that the request to export a bot was created. *
*/ private java.util.Date creationDateTime; /** ** An identifier for a specific request to create an export. *
* * @param exportId * An identifier for a specific request to create an export. */ public void setExportId(String exportId) { this.exportId = exportId; } /** ** An identifier for a specific request to create an export. *
* * @return An identifier for a specific request to create an export. */ public String getExportId() { return this.exportId; } /** ** An identifier for a specific request to create an export. *
* * @param exportId * An identifier for a specific request to create an export. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExportResult withExportId(String exportId) { setExportId(exportId); return this; } /** ** A description of the type of resource that was exported, either a bot or a bot locale. *
* * @param resourceSpecification * A description of the type of resource that was exported, either a bot or a bot locale. */ public void setResourceSpecification(ExportResourceSpecification resourceSpecification) { this.resourceSpecification = resourceSpecification; } /** ** A description of the type of resource that was exported, either a bot or a bot locale. *
* * @return A description of the type of resource that was exported, either a bot or a bot locale. */ public ExportResourceSpecification getResourceSpecification() { return this.resourceSpecification; } /** ** A description of the type of resource that was exported, either a bot or a bot locale. *
* * @param resourceSpecification * A description of the type of resource that was exported, either a bot or a bot locale. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExportResult withResourceSpecification(ExportResourceSpecification resourceSpecification) { setResourceSpecification(resourceSpecification); return this; } /** ** The file format used for the bot or bot locale definition files. *
* * @param fileFormat * The file format used for the bot or bot locale definition files. * @see ImportExportFileFormat */ public void setFileFormat(String fileFormat) { this.fileFormat = fileFormat; } /** ** The file format used for the bot or bot locale definition files. *
* * @return The file format used for the bot or bot locale definition files. * @see ImportExportFileFormat */ public String getFileFormat() { return this.fileFormat; } /** ** The file format used for the bot or bot locale definition files. *
* * @param fileFormat * The file format used for the bot or bot locale definition files. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportExportFileFormat */ public CreateExportResult withFileFormat(String fileFormat) { setFileFormat(fileFormat); return this; } /** ** The file format used for the bot or bot locale definition files. *
* * @param fileFormat * The file format used for the bot or bot locale definition files. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportExportFileFormat */ public CreateExportResult withFileFormat(ImportExportFileFormat fileFormat) { this.fileFormat = fileFormat.toString(); return this; } /** *
* The status of the export. When the status is Completed
, you can use the DescribeExport operation
* to get the pre-signed S3 URL link to your exported bot or bot locale.
*
Completed
, you can use the DescribeExport
* operation to get the pre-signed S3 URL link to your exported bot or bot locale.
* @see ExportStatus
*/
public void setExportStatus(String exportStatus) {
this.exportStatus = exportStatus;
}
/**
*
* The status of the export. When the status is Completed
, you can use the DescribeExport operation
* to get the pre-signed S3 URL link to your exported bot or bot locale.
*
Completed
, you can use the DescribeExport
* operation to get the pre-signed S3 URL link to your exported bot or bot locale.
* @see ExportStatus
*/
public String getExportStatus() {
return this.exportStatus;
}
/**
*
* The status of the export. When the status is Completed
, you can use the DescribeExport operation
* to get the pre-signed S3 URL link to your exported bot or bot locale.
*
Completed
, you can use the DescribeExport
* operation to get the pre-signed S3 URL link to your exported bot or bot locale.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExportStatus
*/
public CreateExportResult withExportStatus(String exportStatus) {
setExportStatus(exportStatus);
return this;
}
/**
*
* The status of the export. When the status is Completed
, you can use the DescribeExport operation
* to get the pre-signed S3 URL link to your exported bot or bot locale.
*
Completed
, you can use the DescribeExport
* operation to get the pre-signed S3 URL link to your exported bot or bot locale.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExportStatus
*/
public CreateExportResult withExportStatus(ExportStatus exportStatus) {
this.exportStatus = exportStatus.toString();
return this;
}
/**
* * The date and time that the request to export a bot was created. *
* * @param creationDateTime * The date and time that the request to export a bot was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** The date and time that the request to export a bot was created. *
* * @return The date and time that the request to export a bot was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** The date and time that the request to export a bot was created. *
* * @param creationDateTime * The date and time that the request to export a bot was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateExportResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getExportId() != null) sb.append("ExportId: ").append(getExportId()).append(","); if (getResourceSpecification() != null) sb.append("ResourceSpecification: ").append(getResourceSpecification()).append(","); if (getFileFormat() != null) sb.append("FileFormat: ").append(getFileFormat()).append(","); if (getExportStatus() != null) sb.append("ExportStatus: ").append(getExportStatus()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateExportResult == false) return false; CreateExportResult other = (CreateExportResult) obj; if (other.getExportId() == null ^ this.getExportId() == null) return false; if (other.getExportId() != null && other.getExportId().equals(this.getExportId()) == false) return false; if (other.getResourceSpecification() == null ^ this.getResourceSpecification() == null) return false; if (other.getResourceSpecification() != null && other.getResourceSpecification().equals(this.getResourceSpecification()) == false) return false; if (other.getFileFormat() == null ^ this.getFileFormat() == null) return false; if (other.getFileFormat() != null && other.getFileFormat().equals(this.getFileFormat()) == false) return false; if (other.getExportStatus() == null ^ this.getExportStatus() == null) return false; if (other.getExportStatus() != null && other.getExportStatus().equals(this.getExportStatus()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExportId() == null) ? 0 : getExportId().hashCode()); hashCode = prime * hashCode + ((getResourceSpecification() == null) ? 0 : getResourceSpecification().hashCode()); hashCode = prime * hashCode + ((getFileFormat() == null) ? 0 : getFileFormat().hashCode()); hashCode = prime * hashCode + ((getExportStatus() == null) ? 0 : getExportStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); return hashCode; } @Override public CreateExportResult clone() { try { return (CreateExportResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }