/* * 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 implements Serializable, Cloneable { /** *

* The name of the bot being exported. *

*/ private String name; /** *

* The version of the bot being exported. *

*/ private String version; /** *

* The type of the exported resource. *

*/ private String resourceType; /** *

* The format of the exported data. *

*/ private String exportType; /** *

* The status of the export. *

* */ private String exportStatus; /** *

* If status is FAILED, Amazon Lex provides the reason that it failed to export the * resource. *

*/ private String failureReason; /** *

* 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. *

*/ private String url; /** *

* The name of the bot being exported. *

* * @param name * The name of the bot being exported. */ public void setName(String name) { this.name = name; } /** *

* The name of the bot being exported. *

* * @return The name of the bot being exported. */ public String getName() { return this.name; } /** *

* The name of the bot being exported. *

* * @param name * The name of the bot being exported. * @return Returns a reference to this object so that method calls can be chained together. */ public GetExportResult withName(String name) { setName(name); return this; } /** *

* The version of the bot being exported. *

* * @param version * The version of the bot being exported. */ public void setVersion(String version) { this.version = version; } /** *

* The version of the bot being exported. *

* * @return The version of the bot being exported. */ public String getVersion() { return this.version; } /** *

* The version of the bot being exported. *

* * @param version * The version of the bot being exported. * @return Returns a reference to this object so that method calls can be chained together. */ public GetExportResult withVersion(String version) { setVersion(version); return this; } /** *

* The type of the exported resource. *

* * @param resourceType * The type of the exported resource. * @see ResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The type of the exported resource. *

* * @return The type of the exported resource. * @see ResourceType */ public String getResourceType() { return this.resourceType; } /** *

* The type of the exported resource. *

* * @param resourceType * The type of the exported resource. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public GetExportResult withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The type of the exported resource. *

* * @param resourceType * The type of the exported resource. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public GetExportResult withResourceType(ResourceType resourceType) { this.resourceType = resourceType.toString(); return this; } /** *

* The format of the exported data. *

* * @param exportType * The format of the exported data. * @see ExportType */ public void setExportType(String exportType) { this.exportType = exportType; } /** *

* The format of the exported data. *

* * @return The format of the exported data. * @see ExportType */ public String getExportType() { return this.exportType; } /** *

* The format of the exported data. *

* * @param exportType * The format of the exported data. * @return Returns a reference to this object so that method calls can be chained together. * @see ExportType */ public GetExportResult withExportType(String exportType) { setExportType(exportType); return this; } /** *

* The format of the exported data. *

* * @param exportType * The format of the exported data. * @return Returns a reference to this object so that method calls can be chained together. * @see ExportType */ public GetExportResult withExportType(ExportType exportType) { this.exportType = exportType.toString(); return this; } /** *

* The status of the export. *

* * * @param exportStatus * The status of the export.

*