/* * 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.qldb.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about a journal export job, including the ledger name, export ID, creation time, current status, and the * parameters of the original export creation request. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JournalS3ExportDescription implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the ledger. *

*/ private String ledgerName; /** *

* The UUID (represented in Base62-encoded text) of the journal export job. *

*/ private String exportId; /** *

* The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of * seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) *

*/ private java.util.Date exportCreationTime; /** *

* The current state of the journal export job. *

*/ private String status; /** *

* The inclusive start date and time for the range of journal contents that was specified in the original export * request. *

*/ private java.util.Date inclusiveStartTime; /** *

* The exclusive end date and time for the range of journal contents that was specified in the original export * request. *

*/ private java.util.Date exclusiveEndTime; private S3ExportConfiguration s3ExportConfiguration; /** *

* The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the * following: *

* */ private String roleArn; /** *

* The output format of the exported journal data. *

*/ private String outputFormat; /** *

* The name of the ledger. *

* * @param ledgerName * The name of the ledger. */ public void setLedgerName(String ledgerName) { this.ledgerName = ledgerName; } /** *

* The name of the ledger. *

* * @return The name of the ledger. */ public String getLedgerName() { return this.ledgerName; } /** *

* The name of the ledger. *

* * @param ledgerName * The name of the ledger. * @return Returns a reference to this object so that method calls can be chained together. */ public JournalS3ExportDescription withLedgerName(String ledgerName) { setLedgerName(ledgerName); return this; } /** *

* The UUID (represented in Base62-encoded text) of the journal export job. *

* * @param exportId * The UUID (represented in Base62-encoded text) of the journal export job. */ public void setExportId(String exportId) { this.exportId = exportId; } /** *

* The UUID (represented in Base62-encoded text) of the journal export job. *

* * @return The UUID (represented in Base62-encoded text) of the journal export job. */ public String getExportId() { return this.exportId; } /** *

* The UUID (represented in Base62-encoded text) of the journal export job. *

* * @param exportId * The UUID (represented in Base62-encoded text) of the journal export job. * @return Returns a reference to this object so that method calls can be chained together. */ public JournalS3ExportDescription withExportId(String exportId) { setExportId(exportId); return this; } /** *

* The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of * seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) *

* * @param exportCreationTime * The date and time, in epoch time format, when the export job was created. (Epoch time format is the number * of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) */ public void setExportCreationTime(java.util.Date exportCreationTime) { this.exportCreationTime = exportCreationTime; } /** *

* The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of * seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) *

* * @return The date and time, in epoch time format, when the export job was created. (Epoch time format is the * number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) */ public java.util.Date getExportCreationTime() { return this.exportCreationTime; } /** *

* The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of * seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) *

* * @param exportCreationTime * The date and time, in epoch time format, when the export job was created. (Epoch time format is the number * of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.) * @return Returns a reference to this object so that method calls can be chained together. */ public JournalS3ExportDescription withExportCreationTime(java.util.Date exportCreationTime) { setExportCreationTime(exportCreationTime); return this; } /** *

* The current state of the journal export job. *

* * @param status * The current state of the journal export job. * @see ExportStatus */ public void setStatus(String status) { this.status = status; } /** *

* The current state of the journal export job. *

* * @return The current state of the journal export job. * @see ExportStatus */ public String getStatus() { return this.status; } /** *

* The current state of the journal export job. *

* * @param status * The current state of the journal export job. * @return Returns a reference to this object so that method calls can be chained together. * @see ExportStatus */ public JournalS3ExportDescription withStatus(String status) { setStatus(status); return this; } /** *

* The current state of the journal export job. *

* * @param status * The current state of the journal export job. * @return Returns a reference to this object so that method calls can be chained together. * @see ExportStatus */ public JournalS3ExportDescription withStatus(ExportStatus status) { this.status = status.toString(); return this; } /** *

* The inclusive start date and time for the range of journal contents that was specified in the original export * request. *

* * @param inclusiveStartTime * The inclusive start date and time for the range of journal contents that was specified in the original * export request. */ public void setInclusiveStartTime(java.util.Date inclusiveStartTime) { this.inclusiveStartTime = inclusiveStartTime; } /** *

* The inclusive start date and time for the range of journal contents that was specified in the original export * request. *

* * @return The inclusive start date and time for the range of journal contents that was specified in the original * export request. */ public java.util.Date getInclusiveStartTime() { return this.inclusiveStartTime; } /** *

* The inclusive start date and time for the range of journal contents that was specified in the original export * request. *

* * @param inclusiveStartTime * The inclusive start date and time for the range of journal contents that was specified in the original * export request. * @return Returns a reference to this object so that method calls can be chained together. */ public JournalS3ExportDescription withInclusiveStartTime(java.util.Date inclusiveStartTime) { setInclusiveStartTime(inclusiveStartTime); return this; } /** *

* The exclusive end date and time for the range of journal contents that was specified in the original export * request. *

* * @param exclusiveEndTime * The exclusive end date and time for the range of journal contents that was specified in the original * export request. */ public void setExclusiveEndTime(java.util.Date exclusiveEndTime) { this.exclusiveEndTime = exclusiveEndTime; } /** *

* The exclusive end date and time for the range of journal contents that was specified in the original export * request. *

* * @return The exclusive end date and time for the range of journal contents that was specified in the original * export request. */ public java.util.Date getExclusiveEndTime() { return this.exclusiveEndTime; } /** *

* The exclusive end date and time for the range of journal contents that was specified in the original export * request. *

* * @param exclusiveEndTime * The exclusive end date and time for the range of journal contents that was specified in the original * export request. * @return Returns a reference to this object so that method calls can be chained together. */ public JournalS3ExportDescription withExclusiveEndTime(java.util.Date exclusiveEndTime) { setExclusiveEndTime(exclusiveEndTime); return this; } /** * @param s3ExportConfiguration */ public void setS3ExportConfiguration(S3ExportConfiguration s3ExportConfiguration) { this.s3ExportConfiguration = s3ExportConfiguration; } /** * @return */ public S3ExportConfiguration getS3ExportConfiguration() { return this.s3ExportConfiguration; } /** * @param s3ExportConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public JournalS3ExportDescription withS3ExportConfiguration(S3ExportConfiguration s3ExportConfiguration) { setS3ExportConfiguration(s3ExportConfiguration); return this; } /** *

* The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the * following: *

* * * @param roleArn * The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do * the following:

*