/* * Copyright 2010-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.rekognition.model; import java.io.Serializable; /** *
* The dataset used for testing. Optionally, if AutoCreate
is set,
* Amazon Rekognition Custom Labels uses the training dataset to create a test
* dataset with a temporary split of the training dataset.
*
* The assets used for testing. *
*/ private java.util.List* If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training * job. After training completes, the test dataset is not stored and the * training dataset reverts to its previous size. *
*/ private Boolean autoCreate; /** ** The assets used for testing. *
* * @return* The assets used for testing. *
*/ public java.util.List* The assets used for testing. *
* * @param assets* The assets used for testing. *
*/ public void setAssets(java.util.Collection* The assets used for testing. *
** Returns a reference to this object so that method calls can be chained * together. * * @param assets
* The assets used for testing. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TestingData withAssets(Asset... assets) { if (getAssets() == null) { this.assets = new java.util.ArrayList* The assets used for testing. *
** Returns a reference to this object so that method calls can be chained * together. * * @param assets
* The assets used for testing. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TestingData withAssets(java.util.Collection* If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training * job. After training completes, the test dataset is not stored and the * training dataset reverts to its previous size. *
* * @return* If specified, Amazon Rekognition Custom Labels temporarily splits * the training dataset (80%) to create a test dataset (20%) for the * training job. After training completes, the test dataset is not * stored and the training dataset reverts to its previous size. *
*/ public Boolean isAutoCreate() { return autoCreate; } /** ** If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training * job. After training completes, the test dataset is not stored and the * training dataset reverts to its previous size. *
* * @return* If specified, Amazon Rekognition Custom Labels temporarily splits * the training dataset (80%) to create a test dataset (20%) for the * training job. After training completes, the test dataset is not * stored and the training dataset reverts to its previous size. *
*/ public Boolean getAutoCreate() { return autoCreate; } /** ** If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training * job. After training completes, the test dataset is not stored and the * training dataset reverts to its previous size. *
* * @param autoCreate* If specified, Amazon Rekognition Custom Labels temporarily * splits the training dataset (80%) to create a test dataset * (20%) for the training job. After training completes, the test * dataset is not stored and the training dataset reverts to its * previous size. *
*/ public void setAutoCreate(Boolean autoCreate) { this.autoCreate = autoCreate; } /** ** If specified, Amazon Rekognition Custom Labels temporarily splits the * training dataset (80%) to create a test dataset (20%) for the training * job. After training completes, the test dataset is not stored and the * training dataset reverts to its previous size. *
** Returns a reference to this object so that method calls can be chained * together. * * @param autoCreate
* If specified, Amazon Rekognition Custom Labels temporarily * splits the training dataset (80%) to create a test dataset * (20%) for the training job. After training completes, the test * dataset is not stored and the training dataset reverts to its * previous size. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TestingData withAutoCreate(Boolean autoCreate) { this.autoCreate = autoCreate; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAssets() != null) sb.append("Assets: " + getAssets() + ","); if (getAutoCreate() != null) sb.append("AutoCreate: " + getAutoCreate()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssets() == null) ? 0 : getAssets().hashCode()); hashCode = prime * hashCode + ((getAutoCreate() == null) ? 0 : getAutoCreate().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TestingData == false) return false; TestingData other = (TestingData) obj; if (other.getAssets() == null ^ this.getAssets() == null) return false; if (other.getAssets() != null && other.getAssets().equals(this.getAssets()) == false) return false; if (other.getAutoCreate() == null ^ this.getAutoCreate() == null) return false; if (other.getAutoCreate() != null && other.getAutoCreate().equals(this.getAutoCreate()) == false) return false; return true; } }