com.amazonaws.services.simpleemailv2.model.ExportJobSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sesv2 Show documentation
/*
* 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.simpleemailv2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A summary of the export job.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ExportJobSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The export job ID.
*
*/
private String jobId;
/**
*
* The source type of the export job.
*
*/
private String exportSourceType;
/**
*
* The status of the export job.
*
*/
private String jobStatus;
/**
*
* The timestamp of when the export job was created.
*
*/
private java.util.Date createdTimestamp;
/**
*
* The timestamp of when the export job was completed.
*
*/
private java.util.Date completedTimestamp;
/**
*
* The export job ID.
*
*
* @param jobId
* The export job ID.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The export job ID.
*
*
* @return The export job ID.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The export job ID.
*
*
* @param jobId
* The export job ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportJobSummary withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* The source type of the export job.
*
*
* @param exportSourceType
* The source type of the export job.
* @see ExportSourceType
*/
public void setExportSourceType(String exportSourceType) {
this.exportSourceType = exportSourceType;
}
/**
*
* The source type of the export job.
*
*
* @return The source type of the export job.
* @see ExportSourceType
*/
public String getExportSourceType() {
return this.exportSourceType;
}
/**
*
* The source type of the export job.
*
*
* @param exportSourceType
* The source type of the export job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExportSourceType
*/
public ExportJobSummary withExportSourceType(String exportSourceType) {
setExportSourceType(exportSourceType);
return this;
}
/**
*
* The source type of the export job.
*
*
* @param exportSourceType
* The source type of the export job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExportSourceType
*/
public ExportJobSummary withExportSourceType(ExportSourceType exportSourceType) {
this.exportSourceType = exportSourceType.toString();
return this;
}
/**
*
* The status of the export job.
*
*
* @param jobStatus
* The status of the export job.
* @see JobStatus
*/
public void setJobStatus(String jobStatus) {
this.jobStatus = jobStatus;
}
/**
*
* The status of the export job.
*
*
* @return The status of the export job.
* @see JobStatus
*/
public String getJobStatus() {
return this.jobStatus;
}
/**
*
* The status of the export job.
*
*
* @param jobStatus
* The status of the export job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobStatus
*/
public ExportJobSummary withJobStatus(String jobStatus) {
setJobStatus(jobStatus);
return this;
}
/**
*
* The status of the export job.
*
*
* @param jobStatus
* The status of the export job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobStatus
*/
public ExportJobSummary withJobStatus(JobStatus jobStatus) {
this.jobStatus = jobStatus.toString();
return this;
}
/**
*
* The timestamp of when the export job was created.
*
*
* @param createdTimestamp
* The timestamp of when the export job was created.
*/
public void setCreatedTimestamp(java.util.Date createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}
/**
*
* The timestamp of when the export job was created.
*
*
* @return The timestamp of when the export job was created.
*/
public java.util.Date getCreatedTimestamp() {
return this.createdTimestamp;
}
/**
*
* The timestamp of when the export job was created.
*
*
* @param createdTimestamp
* The timestamp of when the export job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportJobSummary withCreatedTimestamp(java.util.Date createdTimestamp) {
setCreatedTimestamp(createdTimestamp);
return this;
}
/**
*
* The timestamp of when the export job was completed.
*
*
* @param completedTimestamp
* The timestamp of when the export job was completed.
*/
public void setCompletedTimestamp(java.util.Date completedTimestamp) {
this.completedTimestamp = completedTimestamp;
}
/**
*
* The timestamp of when the export job was completed.
*
*
* @return The timestamp of when the export job was completed.
*/
public java.util.Date getCompletedTimestamp() {
return this.completedTimestamp;
}
/**
*
* The timestamp of when the export job was completed.
*
*
* @param completedTimestamp
* The timestamp of when the export job was completed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportJobSummary withCompletedTimestamp(java.util.Date completedTimestamp) {
setCompletedTimestamp(completedTimestamp);
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 (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getExportSourceType() != null)
sb.append("ExportSourceType: ").append(getExportSourceType()).append(",");
if (getJobStatus() != null)
sb.append("JobStatus: ").append(getJobStatus()).append(",");
if (getCreatedTimestamp() != null)
sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(",");
if (getCompletedTimestamp() != null)
sb.append("CompletedTimestamp: ").append(getCompletedTimestamp());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ExportJobSummary == false)
return false;
ExportJobSummary other = (ExportJobSummary) obj;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getExportSourceType() == null ^ this.getExportSourceType() == null)
return false;
if (other.getExportSourceType() != null && other.getExportSourceType().equals(this.getExportSourceType()) == false)
return false;
if (other.getJobStatus() == null ^ this.getJobStatus() == null)
return false;
if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false)
return false;
if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null)
return false;
if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false)
return false;
if (other.getCompletedTimestamp() == null ^ this.getCompletedTimestamp() == null)
return false;
if (other.getCompletedTimestamp() != null && other.getCompletedTimestamp().equals(this.getCompletedTimestamp()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getExportSourceType() == null) ? 0 : getExportSourceType().hashCode());
hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode());
hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getCompletedTimestamp() == null) ? 0 : getCompletedTimestamp().hashCode());
return hashCode;
}
@Override
public ExportJobSummary clone() {
try {
return (ExportJobSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.simpleemailv2.model.transform.ExportJobSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}