/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.lexmodelbuilding.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetExportResult extends com.amazonaws.AmazonWebServiceResult
* The name of the bot being exported.
*
* The version of the bot being exported.
*
* The type of the exported resource.
*
* The format of the exported data.
*
* The status of the export.
*
*
*
*
* If
* An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive
* that contains the exported resource in JSON format. The structure of the archive may change. Your code should not
* rely on the archive structure.
*
* The name of the bot being exported.
*
* The name of the bot being exported.
*
* The name of the bot being exported.
*
* The version of the bot being exported.
*
* The version of the bot being exported.
*
* The version of the bot being exported.
*
* The type of the exported resource.
*
* The type of the exported resource.
*
* The type of the exported resource.
*
* The type of the exported resource.
*
* The format of the exported data.
*
* The format of the exported data.
*
* The format of the exported data.
*
* The format of the exported data.
*
* The status of the export.
*
*
*
*
*
*/
private String exportStatus;
/**
* IN_PROGRESS
- The export is in progress.
* READY
- The export is complete.
* FAILED
- The export could not be completed.
* status
is FAILED
, Amazon Lex provides the reason that it failed to export the
* resource.
*
*
*
* @param exportStatus
* The status of the export. IN_PROGRESS
- The export is in progress.
* READY
- The export is complete.
* FAILED
- The export could not be completed.
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* The status of the export. *
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* The status of the export. *
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* The status of the export. *
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* IN_PROGRESS
- The export is in progress.
*
* READY
- The export is complete.
*
* FAILED
- The export could not be completed.
*
* If status
is FAILED
, Amazon Lex provides the reason that it failed to export the
* resource.
*
status
is FAILED
, Amazon Lex provides the reason that it failed to export the
* resource.
*/
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
*
* If status
is FAILED
, Amazon Lex provides the reason that it failed to export the
* resource.
*
status
is FAILED
, Amazon Lex provides the reason that it failed to export
* the resource.
*/
public String getFailureReason() {
return this.failureReason;
}
/**
*
* If status
is FAILED
, Amazon Lex provides the reason that it failed to export the
* resource.
*
status
is FAILED
, Amazon Lex provides the reason that it failed to export the
* resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetExportResult withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
* * An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive * that contains the exported resource in JSON format. The structure of the archive may change. Your code should not * rely on the archive structure. *
* * @param url * An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP * archive that contains the exported resource in JSON format. The structure of the archive may change. Your * code should not rely on the archive structure. */ public void setUrl(String url) { this.url = url; } /** ** An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive * that contains the exported resource in JSON format. The structure of the archive may change. Your code should not * rely on the archive structure. *
* * @return An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP * archive that contains the exported resource in JSON format. The structure of the archive may change. Your * code should not rely on the archive structure. */ public String getUrl() { return this.url; } /** ** An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive * that contains the exported resource in JSON format. The structure of the archive may change. Your code should not * rely on the archive structure. *
* * @param url * An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP * archive that contains the exported resource in JSON format. The structure of the archive may change. Your * code should not rely on the archive structure. * @return Returns a reference to this object so that method calls can be chained together. */ public GetExportResult withUrl(String url) { setUrl(url); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getExportType() != null) sb.append("ExportType: ").append(getExportType()).append(","); if (getExportStatus() != null) sb.append("ExportStatus: ").append(getExportStatus()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getUrl() != null) sb.append("Url: ").append(getUrl()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetExportResult == false) return false; GetExportResult other = (GetExportResult) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getExportType() == null ^ this.getExportType() == null) return false; if (other.getExportType() != null && other.getExportType().equals(this.getExportType()) == 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.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getUrl() == null ^ this.getUrl() == null) return false; if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getExportType() == null) ? 0 : getExportType().hashCode()); hashCode = prime * hashCode + ((getExportStatus() == null) ? 0 : getExportStatus().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); return hashCode; } @Override public GetExportResult clone() { try { return (GetExportResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }