
com.amazonaws.services.sagemaker.model.LabelingJobForWorkteamSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* Copyright 2019-2024 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.sagemaker.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Provides summary information for a work team.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class LabelingJobForWorkteamSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The name of the labeling job that the work team is assigned to.
*
*/
private String labelingJobName;
/**
*
* A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
*
*/
private String jobReferenceCode;
/**
*
* The Amazon Web Services account ID of the account used to start the labeling job.
*
*/
private String workRequesterAccountId;
/**
*
* The date and time that the labeling job was created.
*
*/
private java.util.Date creationTime;
/**
*
* Provides information about the progress of a labeling job.
*
*/
private LabelCountersForWorkteam labelCounters;
/**
*
* The configured number of workers per data object.
*
*/
private Integer numberOfHumanWorkersPerDataObject;
/**
*
* The name of the labeling job that the work team is assigned to.
*
*
* @param labelingJobName
* The name of the labeling job that the work team is assigned to.
*/
public void setLabelingJobName(String labelingJobName) {
this.labelingJobName = labelingJobName;
}
/**
*
* The name of the labeling job that the work team is assigned to.
*
*
* @return The name of the labeling job that the work team is assigned to.
*/
public String getLabelingJobName() {
return this.labelingJobName;
}
/**
*
* The name of the labeling job that the work team is assigned to.
*
*
* @param labelingJobName
* The name of the labeling job that the work team is assigned to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LabelingJobForWorkteamSummary withLabelingJobName(String labelingJobName) {
setLabelingJobName(labelingJobName);
return this;
}
/**
*
* A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
*
*
* @param jobReferenceCode
* A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
*/
public void setJobReferenceCode(String jobReferenceCode) {
this.jobReferenceCode = jobReferenceCode;
}
/**
*
* A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
*
*
* @return A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
*/
public String getJobReferenceCode() {
return this.jobReferenceCode;
}
/**
*
* A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
*
*
* @param jobReferenceCode
* A unique identifier for a labeling job. You can use this to refer to a specific labeling job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LabelingJobForWorkteamSummary withJobReferenceCode(String jobReferenceCode) {
setJobReferenceCode(jobReferenceCode);
return this;
}
/**
*
* The Amazon Web Services account ID of the account used to start the labeling job.
*
*
* @param workRequesterAccountId
* The Amazon Web Services account ID of the account used to start the labeling job.
*/
public void setWorkRequesterAccountId(String workRequesterAccountId) {
this.workRequesterAccountId = workRequesterAccountId;
}
/**
*
* The Amazon Web Services account ID of the account used to start the labeling job.
*
*
* @return The Amazon Web Services account ID of the account used to start the labeling job.
*/
public String getWorkRequesterAccountId() {
return this.workRequesterAccountId;
}
/**
*
* The Amazon Web Services account ID of the account used to start the labeling job.
*
*
* @param workRequesterAccountId
* The Amazon Web Services account ID of the account used to start the labeling job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LabelingJobForWorkteamSummary withWorkRequesterAccountId(String workRequesterAccountId) {
setWorkRequesterAccountId(workRequesterAccountId);
return this;
}
/**
*
* The date and time that the labeling job was created.
*
*
* @param creationTime
* The date and time that the labeling job was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The date and time that the labeling job was created.
*
*
* @return The date and time that the labeling job was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The date and time that the labeling job was created.
*
*
* @param creationTime
* The date and time that the labeling job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LabelingJobForWorkteamSummary withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* Provides information about the progress of a labeling job.
*
*
* @param labelCounters
* Provides information about the progress of a labeling job.
*/
public void setLabelCounters(LabelCountersForWorkteam labelCounters) {
this.labelCounters = labelCounters;
}
/**
*
* Provides information about the progress of a labeling job.
*
*
* @return Provides information about the progress of a labeling job.
*/
public LabelCountersForWorkteam getLabelCounters() {
return this.labelCounters;
}
/**
*
* Provides information about the progress of a labeling job.
*
*
* @param labelCounters
* Provides information about the progress of a labeling job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LabelingJobForWorkteamSummary withLabelCounters(LabelCountersForWorkteam labelCounters) {
setLabelCounters(labelCounters);
return this;
}
/**
*
* The configured number of workers per data object.
*
*
* @param numberOfHumanWorkersPerDataObject
* The configured number of workers per data object.
*/
public void setNumberOfHumanWorkersPerDataObject(Integer numberOfHumanWorkersPerDataObject) {
this.numberOfHumanWorkersPerDataObject = numberOfHumanWorkersPerDataObject;
}
/**
*
* The configured number of workers per data object.
*
*
* @return The configured number of workers per data object.
*/
public Integer getNumberOfHumanWorkersPerDataObject() {
return this.numberOfHumanWorkersPerDataObject;
}
/**
*
* The configured number of workers per data object.
*
*
* @param numberOfHumanWorkersPerDataObject
* The configured number of workers per data object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LabelingJobForWorkteamSummary withNumberOfHumanWorkersPerDataObject(Integer numberOfHumanWorkersPerDataObject) {
setNumberOfHumanWorkersPerDataObject(numberOfHumanWorkersPerDataObject);
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 (getLabelingJobName() != null)
sb.append("LabelingJobName: ").append(getLabelingJobName()).append(",");
if (getJobReferenceCode() != null)
sb.append("JobReferenceCode: ").append(getJobReferenceCode()).append(",");
if (getWorkRequesterAccountId() != null)
sb.append("WorkRequesterAccountId: ").append(getWorkRequesterAccountId()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLabelCounters() != null)
sb.append("LabelCounters: ").append(getLabelCounters()).append(",");
if (getNumberOfHumanWorkersPerDataObject() != null)
sb.append("NumberOfHumanWorkersPerDataObject: ").append(getNumberOfHumanWorkersPerDataObject());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof LabelingJobForWorkteamSummary == false)
return false;
LabelingJobForWorkteamSummary other = (LabelingJobForWorkteamSummary) obj;
if (other.getLabelingJobName() == null ^ this.getLabelingJobName() == null)
return false;
if (other.getLabelingJobName() != null && other.getLabelingJobName().equals(this.getLabelingJobName()) == false)
return false;
if (other.getJobReferenceCode() == null ^ this.getJobReferenceCode() == null)
return false;
if (other.getJobReferenceCode() != null && other.getJobReferenceCode().equals(this.getJobReferenceCode()) == false)
return false;
if (other.getWorkRequesterAccountId() == null ^ this.getWorkRequesterAccountId() == null)
return false;
if (other.getWorkRequesterAccountId() != null && other.getWorkRequesterAccountId().equals(this.getWorkRequesterAccountId()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLabelCounters() == null ^ this.getLabelCounters() == null)
return false;
if (other.getLabelCounters() != null && other.getLabelCounters().equals(this.getLabelCounters()) == false)
return false;
if (other.getNumberOfHumanWorkersPerDataObject() == null ^ this.getNumberOfHumanWorkersPerDataObject() == null)
return false;
if (other.getNumberOfHumanWorkersPerDataObject() != null
&& other.getNumberOfHumanWorkersPerDataObject().equals(this.getNumberOfHumanWorkersPerDataObject()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getLabelingJobName() == null) ? 0 : getLabelingJobName().hashCode());
hashCode = prime * hashCode + ((getJobReferenceCode() == null) ? 0 : getJobReferenceCode().hashCode());
hashCode = prime * hashCode + ((getWorkRequesterAccountId() == null) ? 0 : getWorkRequesterAccountId().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLabelCounters() == null) ? 0 : getLabelCounters().hashCode());
hashCode = prime * hashCode + ((getNumberOfHumanWorkersPerDataObject() == null) ? 0 : getNumberOfHumanWorkersPerDataObject().hashCode());
return hashCode;
}
@Override
public LabelingJobForWorkteamSummary clone() {
try {
return (LabelingJobForWorkteamSummary) 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.sagemaker.model.transform.LabelingJobForWorkteamSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}