@Generated(value="software.amazon.awssdk:codegen") public final class GetExportResponse extends LexModelBuildingResponse implements ToCopyableBuilder<GetExportResponse.Builder,GetExportResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetExportResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetExportResponse.Builder |
builder() |
boolean |
equals(Object obj) |
ExportStatus |
exportStatus()
The status of the export.
|
String |
exportStatusAsString()
The status of the export.
|
ExportType |
exportType()
The format of the exported data.
|
String |
exportTypeAsString()
The format of the exported data.
|
String |
failureReason()
If
status is FAILED , Amazon Lex provides the reason that it failed to export the
resource. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
String |
name()
The name of the bot being exported.
|
ResourceType |
resourceType()
The type of the exported resource.
|
String |
resourceTypeAsString()
The type of the exported resource.
|
static Class<? extends GetExportResponse.Builder> |
serializableBuilderClass() |
GetExportResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
url()
An S3 pre-signed URL that provides the location of the exported resource.
|
String |
version()
The version of the bot being exported.
|
sdkHttpResponse
copy
public String name()
The name of the bot being exported.
public String version()
The version of the bot being exported.
public ResourceType resourceType()
The type of the exported resource.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
ResourceType
public String resourceTypeAsString()
The type of the exported resource.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
ResourceType
public ExportType exportType()
The format of the exported data.
If the service returns an enum value that is not available in the current SDK version, exportType
will
return ExportType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
exportTypeAsString()
.
ExportType
public String exportTypeAsString()
The format of the exported data.
If the service returns an enum value that is not available in the current SDK version, exportType
will
return ExportType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
exportTypeAsString()
.
ExportType
public ExportStatus 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.
If the service returns an enum value that is not available in the current SDK version, exportStatus
will
return ExportStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
exportStatusAsString()
.
IN_PROGRESS
- The export is in progress.
READY
- The export is complete.
FAILED
- The export could not be completed.
ExportStatus
public String exportStatusAsString()
The status of the export.
IN_PROGRESS
- The export is in progress.
READY
- The export is complete.
FAILED
- The export could not be completed.
If the service returns an enum value that is not available in the current SDK version, exportStatus
will
return ExportStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
exportStatusAsString()
.
IN_PROGRESS
- The export is in progress.
READY
- The export is complete.
FAILED
- The export could not be completed.
ExportStatus
public String 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 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 GetExportResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetExportResponse.Builder,GetExportResponse>
toBuilder
in class AwsResponse
public static GetExportResponse.Builder builder()
public static Class<? extends GetExportResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.