/* * 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.rekognition.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A description of an Amazon Rekognition Custom Labels project. For more information, see DescribeProjects. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProjectDescription implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the project. *
*/ private String projectArn; /** ** The Unix timestamp for the date and time that the project was created. *
*/ private java.util.Date creationTimestamp; /** ** The current status of the project. *
*/ private String status; /** ** Information about the training and test datasets in the project. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the project. *
* * @param projectArn * The Amazon Resource Name (ARN) of the project. */ public void setProjectArn(String projectArn) { this.projectArn = projectArn; } /** ** The Amazon Resource Name (ARN) of the project. *
* * @return The Amazon Resource Name (ARN) of the project. */ public String getProjectArn() { return this.projectArn; } /** ** The Amazon Resource Name (ARN) of the project. *
* * @param projectArn * The Amazon Resource Name (ARN) of the project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDescription withProjectArn(String projectArn) { setProjectArn(projectArn); return this; } /** ** The Unix timestamp for the date and time that the project was created. *
* * @param creationTimestamp * The Unix timestamp for the date and time that the project was created. */ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** ** The Unix timestamp for the date and time that the project was created. *
* * @return The Unix timestamp for the date and time that the project was created. */ public java.util.Date getCreationTimestamp() { return this.creationTimestamp; } /** ** The Unix timestamp for the date and time that the project was created. *
* * @param creationTimestamp * The Unix timestamp for the date and time that the project was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDescription withCreationTimestamp(java.util.Date creationTimestamp) { setCreationTimestamp(creationTimestamp); return this; } /** ** The current status of the project. *
* * @param status * The current status of the project. * @see ProjectStatus */ public void setStatus(String status) { this.status = status; } /** ** The current status of the project. *
* * @return The current status of the project. * @see ProjectStatus */ public String getStatus() { return this.status; } /** ** The current status of the project. *
* * @param status * The current status of the project. * @return Returns a reference to this object so that method calls can be chained together. * @see ProjectStatus */ public ProjectDescription withStatus(String status) { setStatus(status); return this; } /** ** The current status of the project. *
* * @param status * The current status of the project. * @return Returns a reference to this object so that method calls can be chained together. * @see ProjectStatus */ public ProjectDescription withStatus(ProjectStatus status) { this.status = status.toString(); return this; } /** ** Information about the training and test datasets in the project. *
* * @return Information about the training and test datasets in the project. */ public java.util.List* Information about the training and test datasets in the project. *
* * @param datasets * Information about the training and test datasets in the project. */ public void setDatasets(java.util.Collection* Information about the training and test datasets in the project. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDatasets(java.util.Collection)} or {@link #withDatasets(java.util.Collection)} if you want to override * the existing values. *
* * @param datasets * Information about the training and test datasets in the project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDescription withDatasets(DatasetMetadata... datasets) { if (this.datasets == null) { setDatasets(new java.util.ArrayList* Information about the training and test datasets in the project. *
* * @param datasets * Information about the training and test datasets in the project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDescription withDatasets(java.util.Collection