Class StartExportTaskResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.rds.model.RdsResponse
-
- software.amazon.awssdk.services.rds.model.StartExportTaskResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<StartExportTaskResponse.Builder,StartExportTaskResponse>
@Generated("software.amazon.awssdk:codegen") public final class StartExportTaskResponse extends RdsResponse implements ToCopyableBuilder<StartExportTaskResponse.Builder,StartExportTaskResponse>
Contains the details of a snapshot or cluster export to Amazon S3.
This data type is used as a response element in the
DescribeExportTasksoperation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStartExportTaskResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartExportTaskResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<String>exportOnly()The data exported from the snapshot or cluster.StringexportTaskIdentifier()A unique identifier for the snapshot or cluster export task.StringfailureCause()The reason the export failed, if it failed.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasExportOnly()For responses, this returns true if the service returned a value for the ExportOnly property.inthashCode()StringiamRoleArn()The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.StringkmsKeyId()The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3.IntegerpercentProgress()The progress of the snapshot or cluster export task as a percentage.Strings3Bucket()The Amazon S3 bucket where the snapshot or cluster is exported to.Strings3Prefix()The Amazon S3 bucket prefix that is the file name and path of the exported data.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StartExportTaskResponse.Builder>serializableBuilderClass()InstantsnapshotTime()The time when the snapshot was created.StringsourceArn()The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.ExportSourceTypesourceType()The type of source for the export.StringsourceTypeAsString()The type of source for the export.Stringstatus()The progress status of the export task.InstanttaskEndTime()The time when the snapshot or cluster export task ended.InstanttaskStartTime()The time when the snapshot or cluster export task started.StartExportTaskResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegertotalExtractedDataInGB()The total amount of data exported, in gigabytes.StringwarningMessage()A warning about the snapshot or cluster export task.-
Methods inherited from class software.amazon.awssdk.services.rds.model.RdsResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
exportTaskIdentifier
public final String exportTaskIdentifier()
A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.
- Returns:
- A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.
-
sourceArn
public final String sourceArn()
The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.
- Returns:
- The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.
-
hasExportOnly
public final boolean hasExportOnly()
For responses, this returns true if the service returned a value for the ExportOnly property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
exportOnly
public final List<String> exportOnly()
The data exported from the snapshot or cluster.
Valid Values:
-
database- Export all the data from a specified database. -
database.tabletable-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schemaschema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.tabletable-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasExportOnly()method.- Returns:
- The data exported from the snapshot or cluster.
Valid Values:
-
database- Export all the data from a specified database. -
database.tabletable-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schemaschema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.tabletable-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
-
-
-
snapshotTime
public final Instant snapshotTime()
The time when the snapshot was created.
- Returns:
- The time when the snapshot was created.
-
taskStartTime
public final Instant taskStartTime()
The time when the snapshot or cluster export task started.
- Returns:
- The time when the snapshot or cluster export task started.
-
taskEndTime
public final Instant taskEndTime()
The time when the snapshot or cluster export task ended.
- Returns:
- The time when the snapshot or cluster export task ended.
-
s3Bucket
public final String s3Bucket()
The Amazon S3 bucket where the snapshot or cluster is exported to.
- Returns:
- The Amazon S3 bucket where the snapshot or cluster is exported to.
-
s3Prefix
public final String s3Prefix()
The Amazon S3 bucket prefix that is the file name and path of the exported data.
- Returns:
- The Amazon S3 bucket prefix that is the file name and path of the exported data.
-
iamRoleArn
public final String iamRoleArn()
The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.
- Returns:
- The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.
-
kmsKeyId
public final String kmsKeyId()
The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.
- Returns:
- The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.
-
status
public final String status()
The progress status of the export task. The status can be one of the following:
-
CANCELED -
CANCELING -
COMPLETE -
FAILED -
IN_PROGRESS -
STARTING
- Returns:
- The progress status of the export task. The status can be one of the following:
-
CANCELED -
CANCELING -
COMPLETE -
FAILED -
IN_PROGRESS -
STARTING
-
-
-
percentProgress
public final Integer percentProgress()
The progress of the snapshot or cluster export task as a percentage.
- Returns:
- The progress of the snapshot or cluster export task as a percentage.
-
totalExtractedDataInGB
public final Integer totalExtractedDataInGB()
The total amount of data exported, in gigabytes.
- Returns:
- The total amount of data exported, in gigabytes.
-
failureCause
public final String failureCause()
The reason the export failed, if it failed.
- Returns:
- The reason the export failed, if it failed.
-
warningMessage
public final String warningMessage()
A warning about the snapshot or cluster export task.
- Returns:
- A warning about the snapshot or cluster export task.
-
sourceType
public final ExportSourceType sourceType()
The type of source for the export.
If the service returns an enum value that is not available in the current SDK version,
sourceTypewill returnExportSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceTypeAsString().- Returns:
- The type of source for the export.
- See Also:
ExportSourceType
-
sourceTypeAsString
public final String sourceTypeAsString()
The type of source for the export.
If the service returns an enum value that is not available in the current SDK version,
sourceTypewill returnExportSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceTypeAsString().- Returns:
- The type of source for the export.
- See Also:
ExportSourceType
-
toBuilder
public StartExportTaskResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StartExportTaskResponse.Builder,StartExportTaskResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static StartExportTaskResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends StartExportTaskResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-