/* * 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.lookoutequipment.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Gives statistics about how many files have been ingested, and which files have not been ingested, for a particular * ingestion job. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IngestedFilesSummary implements Serializable, Cloneable, StructuredPojo { /** ** Indicates the total number of files that were submitted for ingestion. *
*/ private Integer totalNumberOfFiles; /** ** Indicates the number of files that were successfully ingested. *
*/ private Integer ingestedNumberOfFiles; /** ** Indicates the number of files that were discarded. A file could be discarded because its format is invalid (for * example, a jpg or pdf) or not readable. *
*/ private java.util.List* Indicates the total number of files that were submitted for ingestion. *
* * @param totalNumberOfFiles * Indicates the total number of files that were submitted for ingestion. */ public void setTotalNumberOfFiles(Integer totalNumberOfFiles) { this.totalNumberOfFiles = totalNumberOfFiles; } /** ** Indicates the total number of files that were submitted for ingestion. *
* * @return Indicates the total number of files that were submitted for ingestion. */ public Integer getTotalNumberOfFiles() { return this.totalNumberOfFiles; } /** ** Indicates the total number of files that were submitted for ingestion. *
* * @param totalNumberOfFiles * Indicates the total number of files that were submitted for ingestion. * @return Returns a reference to this object so that method calls can be chained together. */ public IngestedFilesSummary withTotalNumberOfFiles(Integer totalNumberOfFiles) { setTotalNumberOfFiles(totalNumberOfFiles); return this; } /** ** Indicates the number of files that were successfully ingested. *
* * @param ingestedNumberOfFiles * Indicates the number of files that were successfully ingested. */ public void setIngestedNumberOfFiles(Integer ingestedNumberOfFiles) { this.ingestedNumberOfFiles = ingestedNumberOfFiles; } /** ** Indicates the number of files that were successfully ingested. *
* * @return Indicates the number of files that were successfully ingested. */ public Integer getIngestedNumberOfFiles() { return this.ingestedNumberOfFiles; } /** ** Indicates the number of files that were successfully ingested. *
* * @param ingestedNumberOfFiles * Indicates the number of files that were successfully ingested. * @return Returns a reference to this object so that method calls can be chained together. */ public IngestedFilesSummary withIngestedNumberOfFiles(Integer ingestedNumberOfFiles) { setIngestedNumberOfFiles(ingestedNumberOfFiles); return this; } /** ** Indicates the number of files that were discarded. A file could be discarded because its format is invalid (for * example, a jpg or pdf) or not readable. *
* * @return Indicates the number of files that were discarded. A file could be discarded because its format is * invalid (for example, a jpg or pdf) or not readable. */ public java.util.List* Indicates the number of files that were discarded. A file could be discarded because its format is invalid (for * example, a jpg or pdf) or not readable. *
* * @param discardedFiles * Indicates the number of files that were discarded. A file could be discarded because its format is invalid * (for example, a jpg or pdf) or not readable. */ public void setDiscardedFiles(java.util.Collection* Indicates the number of files that were discarded. A file could be discarded because its format is invalid (for * example, a jpg or pdf) or not readable. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDiscardedFiles(java.util.Collection)} or {@link #withDiscardedFiles(java.util.Collection)} if you want * to override the existing values. *
* * @param discardedFiles * Indicates the number of files that were discarded. A file could be discarded because its format is invalid * (for example, a jpg or pdf) or not readable. * @return Returns a reference to this object so that method calls can be chained together. */ public IngestedFilesSummary withDiscardedFiles(S3Object... discardedFiles) { if (this.discardedFiles == null) { setDiscardedFiles(new java.util.ArrayList* Indicates the number of files that were discarded. A file could be discarded because its format is invalid (for * example, a jpg or pdf) or not readable. *
* * @param discardedFiles * Indicates the number of files that were discarded. A file could be discarded because its format is invalid * (for example, a jpg or pdf) or not readable. * @return Returns a reference to this object so that method calls can be chained together. */ public IngestedFilesSummary withDiscardedFiles(java.util.Collection