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

com.amazonaws.services.lookoutforvision.model.ModelPackagingJobMetadata 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.780
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;

/**
 * 

* Metadata for a model packaging job. For more information, see ListModelPackagingJobs. *

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

* The name of the model packaging job. *

*/ private String jobName; /** *

* The project that contains the model that is in the model package. *

*/ private String projectName; /** *

* The version of the model that is in the model package. *

*/ private String modelVersion; /** *

* The description for the model packaging job. *

*/ private String modelPackagingJobDescription; /** *

* The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT Greengrass. *

*/ private String modelPackagingMethod; /** *

* The status of the model packaging job. *

*/ private String status; /** *

* The status message for the model packaging job. *

*/ private String statusMessage; /** *

* The Unix timestamp for the time and date that the model packaging job was created. *

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

* The Unix timestamp for the time and date that the model packaging job was last updated. *

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

* The name of the model packaging job. *

* * @param jobName * The name of the model packaging job. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* The name of the model packaging job. *

* * @return The name of the model packaging job. */ public String getJobName() { return this.jobName; } /** *

* The name of the model packaging job. *

* * @param jobName * The name of the model packaging job. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackagingJobMetadata withJobName(String jobName) { setJobName(jobName); return this; } /** *

* The project that contains the model that is in the model package. *

* * @param projectName * The project that contains the model that is in the model package. */ public void setProjectName(String projectName) { this.projectName = projectName; } /** *

* The project that contains the model that is in the model package. *

* * @return The project that contains the model that is in the model package. */ public String getProjectName() { return this.projectName; } /** *

* The project that contains the model that is in the model package. *

* * @param projectName * The project that contains the model that is in the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackagingJobMetadata withProjectName(String projectName) { setProjectName(projectName); return this; } /** *

* The version of the model that is in the model package. *

* * @param modelVersion * The version of the model that is in the model package. */ public void setModelVersion(String modelVersion) { this.modelVersion = modelVersion; } /** *

* The version of the model that is in the model package. *

* * @return The version of the model that is in the model package. */ public String getModelVersion() { return this.modelVersion; } /** *

* The version of the model that is in the model package. *

* * @param modelVersion * The version of the model that is in the model package. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackagingJobMetadata withModelVersion(String modelVersion) { setModelVersion(modelVersion); return this; } /** *

* The description for the model packaging job. *

* * @param modelPackagingJobDescription * The description for the model packaging job. */ public void setModelPackagingJobDescription(String modelPackagingJobDescription) { this.modelPackagingJobDescription = modelPackagingJobDescription; } /** *

* The description for the model packaging job. *

* * @return The description for the model packaging job. */ public String getModelPackagingJobDescription() { return this.modelPackagingJobDescription; } /** *

* The description for the model packaging job. *

* * @param modelPackagingJobDescription * The description for the model packaging job. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackagingJobMetadata withModelPackagingJobDescription(String modelPackagingJobDescription) { setModelPackagingJobDescription(modelPackagingJobDescription); return this; } /** *

* The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT Greengrass. *

* * @param modelPackagingMethod * The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT * Greengrass. */ public void setModelPackagingMethod(String modelPackagingMethod) { this.modelPackagingMethod = modelPackagingMethod; } /** *

* The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT Greengrass. *

* * @return The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT * Greengrass. */ public String getModelPackagingMethod() { return this.modelPackagingMethod; } /** *

* The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT Greengrass. *

* * @param modelPackagingMethod * The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT * Greengrass. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackagingJobMetadata withModelPackagingMethod(String modelPackagingMethod) { setModelPackagingMethod(modelPackagingMethod); return this; } /** *

* The status of the model packaging job. *

* * @param status * The status of the model packaging job. * @see ModelPackagingJobStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the model packaging job. *

* * @return The status of the model packaging job. * @see ModelPackagingJobStatus */ public String getStatus() { return this.status; } /** *

* The status of the model packaging job. *

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

* The status of the model packaging job. *

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

* The status message for the model packaging job. *

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

* The status message for the model packaging job. *

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

* The status message for the model packaging job. *

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

* The Unix timestamp for the time and date that the model packaging job was created. *

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

* The Unix timestamp for the time and date that the model packaging job was created. *

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

* The Unix timestamp for the time and date that the model packaging job was created. *

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

* The Unix timestamp for the time and date that the model packaging job was last updated. *

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

* The Unix timestamp for the time and date that the model packaging job was last updated. *

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

* The Unix timestamp for the time and date that the model packaging job was last updated. *

* * @param lastUpdatedTimestamp * The Unix timestamp for the time and date that the model packaging job was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelPackagingJobMetadata withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { setLastUpdatedTimestamp(lastUpdatedTimestamp); 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 (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getProjectName() != null) sb.append("ProjectName: ").append(getProjectName()).append(","); if (getModelVersion() != null) sb.append("ModelVersion: ").append(getModelVersion()).append(","); if (getModelPackagingJobDescription() != null) sb.append("ModelPackagingJobDescription: ").append(getModelPackagingJobDescription()).append(","); if (getModelPackagingMethod() != null) sb.append("ModelPackagingMethod: ").append(getModelPackagingMethod()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: ").append(getCreationTimestamp()).append(","); if (getLastUpdatedTimestamp() != null) sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModelPackagingJobMetadata == false) return false; ModelPackagingJobMetadata other = (ModelPackagingJobMetadata) obj; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getProjectName() == null ^ this.getProjectName() == null) return false; if (other.getProjectName() != null && other.getProjectName().equals(this.getProjectName()) == false) return false; if (other.getModelVersion() == null ^ this.getModelVersion() == null) return false; if (other.getModelVersion() != null && other.getModelVersion().equals(this.getModelVersion()) == false) return false; if (other.getModelPackagingJobDescription() == null ^ this.getModelPackagingJobDescription() == null) return false; if (other.getModelPackagingJobDescription() != null && other.getModelPackagingJobDescription().equals(this.getModelPackagingJobDescription()) == false) return false; if (other.getModelPackagingMethod() == null ^ this.getModelPackagingMethod() == null) return false; if (other.getModelPackagingMethod() != null && other.getModelPackagingMethod().equals(this.getModelPackagingMethod()) == 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.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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getProjectName() == null) ? 0 : getProjectName().hashCode()); hashCode = prime * hashCode + ((getModelVersion() == null) ? 0 : getModelVersion().hashCode()); hashCode = prime * hashCode + ((getModelPackagingJobDescription() == null) ? 0 : getModelPackagingJobDescription().hashCode()); hashCode = prime * hashCode + ((getModelPackagingMethod() == null) ? 0 : getModelPackagingMethod().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); return hashCode; } @Override public ModelPackagingJobMetadata clone() { try { return (ModelPackagingJobMetadata) 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.ModelPackagingJobMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy