com.amazonaws.services.timestreamwrite.model.BatchLoadProgressReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-timestreamwrite Show documentation
Show all versions of aws-java-sdk-timestreamwrite Show documentation
The AWS Java SDK for Amazon Timestream Write module holds the client classes that are used for communicating with Amazon Timestream Write Service
/*
* 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.timestreamwrite.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Details about the progress of a batch load task.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class BatchLoadProgressReport implements Serializable, Cloneable, StructuredPojo {
/** */
private Long recordsProcessed;
/** */
private Long recordsIngested;
/** */
private Long parseFailures;
/** */
private Long recordIngestionFailures;
/** */
private Long fileFailures;
/** */
private Long bytesMetered;
/**
*
*
* @param recordsProcessed
*/
public void setRecordsProcessed(Long recordsProcessed) {
this.recordsProcessed = recordsProcessed;
}
/**
*
*
* @return
*/
public Long getRecordsProcessed() {
return this.recordsProcessed;
}
/**
*
*
* @param recordsProcessed
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchLoadProgressReport withRecordsProcessed(Long recordsProcessed) {
setRecordsProcessed(recordsProcessed);
return this;
}
/**
*
*
* @param recordsIngested
*/
public void setRecordsIngested(Long recordsIngested) {
this.recordsIngested = recordsIngested;
}
/**
*
*
* @return
*/
public Long getRecordsIngested() {
return this.recordsIngested;
}
/**
*
*
* @param recordsIngested
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchLoadProgressReport withRecordsIngested(Long recordsIngested) {
setRecordsIngested(recordsIngested);
return this;
}
/**
*
*
* @param parseFailures
*/
public void setParseFailures(Long parseFailures) {
this.parseFailures = parseFailures;
}
/**
*
*
* @return
*/
public Long getParseFailures() {
return this.parseFailures;
}
/**
*
*
* @param parseFailures
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchLoadProgressReport withParseFailures(Long parseFailures) {
setParseFailures(parseFailures);
return this;
}
/**
*
*
* @param recordIngestionFailures
*/
public void setRecordIngestionFailures(Long recordIngestionFailures) {
this.recordIngestionFailures = recordIngestionFailures;
}
/**
*
*
* @return
*/
public Long getRecordIngestionFailures() {
return this.recordIngestionFailures;
}
/**
*
*
* @param recordIngestionFailures
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchLoadProgressReport withRecordIngestionFailures(Long recordIngestionFailures) {
setRecordIngestionFailures(recordIngestionFailures);
return this;
}
/**
*
*
* @param fileFailures
*/
public void setFileFailures(Long fileFailures) {
this.fileFailures = fileFailures;
}
/**
*
*
* @return
*/
public Long getFileFailures() {
return this.fileFailures;
}
/**
*
*
* @param fileFailures
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchLoadProgressReport withFileFailures(Long fileFailures) {
setFileFailures(fileFailures);
return this;
}
/**
*
*
* @param bytesMetered
*/
public void setBytesMetered(Long bytesMetered) {
this.bytesMetered = bytesMetered;
}
/**
*
*
* @return
*/
public Long getBytesMetered() {
return this.bytesMetered;
}
/**
*
*
* @param bytesMetered
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchLoadProgressReport withBytesMetered(Long bytesMetered) {
setBytesMetered(bytesMetered);
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 (getRecordsProcessed() != null)
sb.append("RecordsProcessed: ").append(getRecordsProcessed()).append(",");
if (getRecordsIngested() != null)
sb.append("RecordsIngested: ").append(getRecordsIngested()).append(",");
if (getParseFailures() != null)
sb.append("ParseFailures: ").append(getParseFailures()).append(",");
if (getRecordIngestionFailures() != null)
sb.append("RecordIngestionFailures: ").append(getRecordIngestionFailures()).append(",");
if (getFileFailures() != null)
sb.append("FileFailures: ").append(getFileFailures()).append(",");
if (getBytesMetered() != null)
sb.append("BytesMetered: ").append(getBytesMetered());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BatchLoadProgressReport == false)
return false;
BatchLoadProgressReport other = (BatchLoadProgressReport) obj;
if (other.getRecordsProcessed() == null ^ this.getRecordsProcessed() == null)
return false;
if (other.getRecordsProcessed() != null && other.getRecordsProcessed().equals(this.getRecordsProcessed()) == false)
return false;
if (other.getRecordsIngested() == null ^ this.getRecordsIngested() == null)
return false;
if (other.getRecordsIngested() != null && other.getRecordsIngested().equals(this.getRecordsIngested()) == false)
return false;
if (other.getParseFailures() == null ^ this.getParseFailures() == null)
return false;
if (other.getParseFailures() != null && other.getParseFailures().equals(this.getParseFailures()) == false)
return false;
if (other.getRecordIngestionFailures() == null ^ this.getRecordIngestionFailures() == null)
return false;
if (other.getRecordIngestionFailures() != null && other.getRecordIngestionFailures().equals(this.getRecordIngestionFailures()) == false)
return false;
if (other.getFileFailures() == null ^ this.getFileFailures() == null)
return false;
if (other.getFileFailures() != null && other.getFileFailures().equals(this.getFileFailures()) == false)
return false;
if (other.getBytesMetered() == null ^ this.getBytesMetered() == null)
return false;
if (other.getBytesMetered() != null && other.getBytesMetered().equals(this.getBytesMetered()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getRecordsProcessed() == null) ? 0 : getRecordsProcessed().hashCode());
hashCode = prime * hashCode + ((getRecordsIngested() == null) ? 0 : getRecordsIngested().hashCode());
hashCode = prime * hashCode + ((getParseFailures() == null) ? 0 : getParseFailures().hashCode());
hashCode = prime * hashCode + ((getRecordIngestionFailures() == null) ? 0 : getRecordIngestionFailures().hashCode());
hashCode = prime * hashCode + ((getFileFailures() == null) ? 0 : getFileFailures().hashCode());
hashCode = prime * hashCode + ((getBytesMetered() == null) ? 0 : getBytesMetered().hashCode());
return hashCode;
}
@Override
public BatchLoadProgressReport clone() {
try {
return (BatchLoadProgressReport) 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.timestreamwrite.model.transform.BatchLoadProgressReportMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}