All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mailmanager.model.StartArchiveExportRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for MailManager module holds the client classes that are used for communicating with MailManager Service

The newest version!
/*
 * Copyright 2019-2024 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.mailmanager.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* The request to initiate an export of emails from an archive. *

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

* The identifier of the archive to export emails from. *

*/ private String archiveId; /** *

* Details on where to deliver the exported email data. *

*/ private ExportDestinationConfiguration exportDestinationConfiguration; /** *

* Criteria to filter which emails are included in the export. *

*/ private ArchiveFilters filters; /** *

* The start of the timestamp range to include emails from. *

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

* The maximum number of email items to include in the export. *

*/ private Integer maxResults; /** *

* The end of the timestamp range to include emails from. *

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

* The identifier of the archive to export emails from. *

* * @param archiveId * The identifier of the archive to export emails from. */ public void setArchiveId(String archiveId) { this.archiveId = archiveId; } /** *

* The identifier of the archive to export emails from. *

* * @return The identifier of the archive to export emails from. */ public String getArchiveId() { return this.archiveId; } /** *

* The identifier of the archive to export emails from. *

* * @param archiveId * The identifier of the archive to export emails from. * @return Returns a reference to this object so that method calls can be chained together. */ public StartArchiveExportRequest withArchiveId(String archiveId) { setArchiveId(archiveId); return this; } /** *

* Details on where to deliver the exported email data. *

* * @param exportDestinationConfiguration * Details on where to deliver the exported email data. */ public void setExportDestinationConfiguration(ExportDestinationConfiguration exportDestinationConfiguration) { this.exportDestinationConfiguration = exportDestinationConfiguration; } /** *

* Details on where to deliver the exported email data. *

* * @return Details on where to deliver the exported email data. */ public ExportDestinationConfiguration getExportDestinationConfiguration() { return this.exportDestinationConfiguration; } /** *

* Details on where to deliver the exported email data. *

* * @param exportDestinationConfiguration * Details on where to deliver the exported email data. * @return Returns a reference to this object so that method calls can be chained together. */ public StartArchiveExportRequest withExportDestinationConfiguration(ExportDestinationConfiguration exportDestinationConfiguration) { setExportDestinationConfiguration(exportDestinationConfiguration); return this; } /** *

* Criteria to filter which emails are included in the export. *

* * @param filters * Criteria to filter which emails are included in the export. */ public void setFilters(ArchiveFilters filters) { this.filters = filters; } /** *

* Criteria to filter which emails are included in the export. *

* * @return Criteria to filter which emails are included in the export. */ public ArchiveFilters getFilters() { return this.filters; } /** *

* Criteria to filter which emails are included in the export. *

* * @param filters * Criteria to filter which emails are included in the export. * @return Returns a reference to this object so that method calls can be chained together. */ public StartArchiveExportRequest withFilters(ArchiveFilters filters) { setFilters(filters); return this; } /** *

* The start of the timestamp range to include emails from. *

* * @param fromTimestamp * The start of the timestamp range to include emails from. */ public void setFromTimestamp(java.util.Date fromTimestamp) { this.fromTimestamp = fromTimestamp; } /** *

* The start of the timestamp range to include emails from. *

* * @return The start of the timestamp range to include emails from. */ public java.util.Date getFromTimestamp() { return this.fromTimestamp; } /** *

* The start of the timestamp range to include emails from. *

* * @param fromTimestamp * The start of the timestamp range to include emails from. * @return Returns a reference to this object so that method calls can be chained together. */ public StartArchiveExportRequest withFromTimestamp(java.util.Date fromTimestamp) { setFromTimestamp(fromTimestamp); return this; } /** *

* The maximum number of email items to include in the export. *

* * @param maxResults * The maximum number of email items to include in the export. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of email items to include in the export. *

* * @return The maximum number of email items to include in the export. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of email items to include in the export. *

* * @param maxResults * The maximum number of email items to include in the export. * @return Returns a reference to this object so that method calls can be chained together. */ public StartArchiveExportRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* The end of the timestamp range to include emails from. *

* * @param toTimestamp * The end of the timestamp range to include emails from. */ public void setToTimestamp(java.util.Date toTimestamp) { this.toTimestamp = toTimestamp; } /** *

* The end of the timestamp range to include emails from. *

* * @return The end of the timestamp range to include emails from. */ public java.util.Date getToTimestamp() { return this.toTimestamp; } /** *

* The end of the timestamp range to include emails from. *

* * @param toTimestamp * The end of the timestamp range to include emails from. * @return Returns a reference to this object so that method calls can be chained together. */ public StartArchiveExportRequest withToTimestamp(java.util.Date toTimestamp) { setToTimestamp(toTimestamp); 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 (getArchiveId() != null) sb.append("ArchiveId: ").append(getArchiveId()).append(","); if (getExportDestinationConfiguration() != null) sb.append("ExportDestinationConfiguration: ").append(getExportDestinationConfiguration()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getFromTimestamp() != null) sb.append("FromTimestamp: ").append(getFromTimestamp()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getToTimestamp() != null) sb.append("ToTimestamp: ").append(getToTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartArchiveExportRequest == false) return false; StartArchiveExportRequest other = (StartArchiveExportRequest) obj; if (other.getArchiveId() == null ^ this.getArchiveId() == null) return false; if (other.getArchiveId() != null && other.getArchiveId().equals(this.getArchiveId()) == false) return false; if (other.getExportDestinationConfiguration() == null ^ this.getExportDestinationConfiguration() == null) return false; if (other.getExportDestinationConfiguration() != null && other.getExportDestinationConfiguration().equals(this.getExportDestinationConfiguration()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getFromTimestamp() == null ^ this.getFromTimestamp() == null) return false; if (other.getFromTimestamp() != null && other.getFromTimestamp().equals(this.getFromTimestamp()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getToTimestamp() == null ^ this.getToTimestamp() == null) return false; if (other.getToTimestamp() != null && other.getToTimestamp().equals(this.getToTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArchiveId() == null) ? 0 : getArchiveId().hashCode()); hashCode = prime * hashCode + ((getExportDestinationConfiguration() == null) ? 0 : getExportDestinationConfiguration().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getFromTimestamp() == null) ? 0 : getFromTimestamp().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getToTimestamp() == null) ? 0 : getToTimestamp().hashCode()); return hashCode; } @Override public StartArchiveExportRequest clone() { return (StartArchiveExportRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy