All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lookoutforvision.model.DatasetDescription Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Lookout for Vision module holds the client classes that are used for communicating with Amazon Lookout for Vision Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.lookoutforvision.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The description for a dataset. For more information, see DescribeDataset. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DatasetDescription implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the project that contains the dataset. *

*/ private String projectName; /** *

* The type of the dataset. The value train represents a training dataset or single dataset project. * The value test represents a test dataset. *

*/ private String datasetType; /** *

* The Unix timestamp for the time and date that the dataset was created. *

*/ private java.util.Date creationTimestamp; /** *

* The Unix timestamp for the date and time that the dataset was last updated. *

*/ private java.util.Date lastUpdatedTimestamp; /** *

* The status of the dataset. *

*/ private String status; /** *

* The status message for the dataset. *

*/ private String statusMessage; /** *

* Statistics about the images in a dataset. *

*/ private DatasetImageStats imageStats; /** *

* The name of the project that contains the dataset. *

* * @param projectName * The name of the project that contains the dataset. */ public void setProjectName(String projectName) { this.projectName = projectName; } /** *

* The name of the project that contains the dataset. *

* * @return The name of the project that contains the dataset. */ public String getProjectName() { return this.projectName; } /** *

* The name of the project that contains the dataset. *

* * @param projectName * The name of the project that contains the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetDescription withProjectName(String projectName) { setProjectName(projectName); return this; } /** *

* The type of the dataset. The value train represents a training dataset or single dataset project. * The value test represents a test dataset. *

* * @param datasetType * The type of the dataset. The value train represents a training dataset or single dataset * project. The value test represents a test dataset. */ public void setDatasetType(String datasetType) { this.datasetType = datasetType; } /** *

* The type of the dataset. The value train represents a training dataset or single dataset project. * The value test represents a test dataset. *

* * @return The type of the dataset. The value train represents a training dataset or single dataset * project. The value test represents a test dataset. */ public String getDatasetType() { return this.datasetType; } /** *

* The type of the dataset. The value train represents a training dataset or single dataset project. * The value test represents a test dataset. *

* * @param datasetType * The type of the dataset. The value train represents a training dataset or single dataset * project. The value test represents a test dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetDescription withDatasetType(String datasetType) { setDatasetType(datasetType); return this; } /** *

* The Unix timestamp for the time and date that the dataset was created. *

* * @param creationTimestamp * The Unix timestamp for the time and date that the dataset was created. */ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** *

* The Unix timestamp for the time and date that the dataset was created. *

* * @return The Unix timestamp for the time and date that the dataset was created. */ public java.util.Date getCreationTimestamp() { return this.creationTimestamp; } /** *

* The Unix timestamp for the time and date that the dataset was created. *

* * @param creationTimestamp * The Unix timestamp for the time and date that the dataset was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetDescription withCreationTimestamp(java.util.Date creationTimestamp) { setCreationTimestamp(creationTimestamp); return this; } /** *

* The Unix timestamp for the date and time that the dataset was last updated. *

* * @param lastUpdatedTimestamp * The Unix timestamp for the date and time that the dataset was last updated. */ public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; } /** *

* The Unix timestamp for the date and time that the dataset was last updated. *

* * @return The Unix timestamp for the date and time that the dataset was last updated. */ public java.util.Date getLastUpdatedTimestamp() { return this.lastUpdatedTimestamp; } /** *

* The Unix timestamp for the date and time that the dataset was last updated. *

* * @param lastUpdatedTimestamp * The Unix timestamp for the date and time that the dataset was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetDescription withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { setLastUpdatedTimestamp(lastUpdatedTimestamp); return this; } /** *

* The status of the dataset. *

* * @param status * The status of the dataset. * @see DatasetStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the dataset. *

* * @return The status of the dataset. * @see DatasetStatus */ public String getStatus() { return this.status; } /** *

* The status of the dataset. *

* * @param status * The status of the dataset. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetStatus */ public DatasetDescription withStatus(String status) { setStatus(status); return this; } /** *

* The status of the dataset. *

* * @param status * The status of the dataset. * @return Returns a reference to this object so that method calls can be chained together. * @see DatasetStatus */ public DatasetDescription withStatus(DatasetStatus status) { this.status = status.toString(); return this; } /** *

* The status message for the dataset. *

* * @param statusMessage * The status message for the dataset. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* The status message for the dataset. *

* * @return The status message for the dataset. */ public String getStatusMessage() { return this.statusMessage; } /** *

* The status message for the dataset. *

* * @param statusMessage * The status message for the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetDescription withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** *

* Statistics about the images in a dataset. *

* * @param imageStats * Statistics about the images in a dataset. */ public void setImageStats(DatasetImageStats imageStats) { this.imageStats = imageStats; } /** *

* Statistics about the images in a dataset. *

* * @return Statistics about the images in a dataset. */ public DatasetImageStats getImageStats() { return this.imageStats; } /** *

* Statistics about the images in a dataset. *

* * @param imageStats * Statistics about the images in a dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetDescription withImageStats(DatasetImageStats imageStats) { setImageStats(imageStats); 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 (getProjectName() != null) sb.append("ProjectName: ").append(getProjectName()).append(","); if (getDatasetType() != null) sb.append("DatasetType: ").append(getDatasetType()).append(","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: ").append(getCreationTimestamp()).append(","); if (getLastUpdatedTimestamp() != null) sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getImageStats() != null) sb.append("ImageStats: ").append(getImageStats()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DatasetDescription == false) return false; DatasetDescription other = (DatasetDescription) obj; if (other.getProjectName() == null ^ this.getProjectName() == null) return false; if (other.getProjectName() != null && other.getProjectName().equals(this.getProjectName()) == false) return false; if (other.getDatasetType() == null ^ this.getDatasetType() == null) return false; if (other.getDatasetType() != null && other.getDatasetType().equals(this.getDatasetType()) == false) return false; if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null) return false; if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false) return false; if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) return false; if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getImageStats() == null ^ this.getImageStats() == null) return false; if (other.getImageStats() != null && other.getImageStats().equals(this.getImageStats()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjectName() == null) ? 0 : getProjectName().hashCode()); hashCode = prime * hashCode + ((getDatasetType() == null) ? 0 : getDatasetType().hashCode()); hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getImageStats() == null) ? 0 : getImageStats().hashCode()); return hashCode; } @Override public DatasetDescription clone() { try { return (DatasetDescription) 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.lookoutforvision.model.transform.DatasetDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy