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

com.amazonaws.services.lookoutequipment.model.DescribeLabelResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Lookout for Equipment module holds the client classes that are used for communicating with Amazon Lookout for Equipment 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.lookoutequipment.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The name of the requested label group. *

*/ private String labelGroupName; /** *

* The Amazon Resource Name (ARN) of the requested label group. *

*/ private String labelGroupArn; /** *

* The ID of the requested label. *

*/ private String labelId; /** *

* The start time of the requested label. *

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

* The end time of the requested label. *

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

* Indicates whether a labeled event represents an anomaly. *

*/ private String rating; /** *

* Indicates the type of anomaly associated with the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

*/ private String faultCode; /** *

* Metadata providing additional information about the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

*/ private String notes; /** *

* Indicates that a label pertains to a particular piece of equipment. *

*/ private String equipment; /** *

* The time at which the label was created. *

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

* The name of the requested label group. *

* * @param labelGroupName * The name of the requested label group. */ public void setLabelGroupName(String labelGroupName) { this.labelGroupName = labelGroupName; } /** *

* The name of the requested label group. *

* * @return The name of the requested label group. */ public String getLabelGroupName() { return this.labelGroupName; } /** *

* The name of the requested label group. *

* * @param labelGroupName * The name of the requested label group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withLabelGroupName(String labelGroupName) { setLabelGroupName(labelGroupName); return this; } /** *

* The Amazon Resource Name (ARN) of the requested label group. *

* * @param labelGroupArn * The Amazon Resource Name (ARN) of the requested label group. */ public void setLabelGroupArn(String labelGroupArn) { this.labelGroupArn = labelGroupArn; } /** *

* The Amazon Resource Name (ARN) of the requested label group. *

* * @return The Amazon Resource Name (ARN) of the requested label group. */ public String getLabelGroupArn() { return this.labelGroupArn; } /** *

* The Amazon Resource Name (ARN) of the requested label group. *

* * @param labelGroupArn * The Amazon Resource Name (ARN) of the requested label group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withLabelGroupArn(String labelGroupArn) { setLabelGroupArn(labelGroupArn); return this; } /** *

* The ID of the requested label. *

* * @param labelId * The ID of the requested label. */ public void setLabelId(String labelId) { this.labelId = labelId; } /** *

* The ID of the requested label. *

* * @return The ID of the requested label. */ public String getLabelId() { return this.labelId; } /** *

* The ID of the requested label. *

* * @param labelId * The ID of the requested label. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withLabelId(String labelId) { setLabelId(labelId); return this; } /** *

* The start time of the requested label. *

* * @param startTime * The start time of the requested label. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start time of the requested label. *

* * @return The start time of the requested label. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start time of the requested label. *

* * @param startTime * The start time of the requested label. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end time of the requested label. *

* * @param endTime * The end time of the requested label. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end time of the requested label. *

* * @return The end time of the requested label. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end time of the requested label. *

* * @param endTime * The end time of the requested label. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* Indicates whether a labeled event represents an anomaly. *

* * @param rating * Indicates whether a labeled event represents an anomaly. * @see LabelRating */ public void setRating(String rating) { this.rating = rating; } /** *

* Indicates whether a labeled event represents an anomaly. *

* * @return Indicates whether a labeled event represents an anomaly. * @see LabelRating */ public String getRating() { return this.rating; } /** *

* Indicates whether a labeled event represents an anomaly. *

* * @param rating * Indicates whether a labeled event represents an anomaly. * @return Returns a reference to this object so that method calls can be chained together. * @see LabelRating */ public DescribeLabelResult withRating(String rating) { setRating(rating); return this; } /** *

* Indicates whether a labeled event represents an anomaly. *

* * @param rating * Indicates whether a labeled event represents an anomaly. * @return Returns a reference to this object so that method calls can be chained together. * @see LabelRating */ public DescribeLabelResult withRating(LabelRating rating) { this.rating = rating.toString(); return this; } /** *

* Indicates the type of anomaly associated with the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

* * @param faultCode * Indicates the type of anomaly associated with the label.

*

* Data in this field will be retained for service usage. Follow best practices for the security of your * data. */ public void setFaultCode(String faultCode) { this.faultCode = faultCode; } /** *

* Indicates the type of anomaly associated with the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

* * @return Indicates the type of anomaly associated with the label.

*

* Data in this field will be retained for service usage. Follow best practices for the security of your * data. */ public String getFaultCode() { return this.faultCode; } /** *

* Indicates the type of anomaly associated with the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

* * @param faultCode * Indicates the type of anomaly associated with the label.

*

* Data in this field will be retained for service usage. Follow best practices for the security of your * data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withFaultCode(String faultCode) { setFaultCode(faultCode); return this; } /** *

* Metadata providing additional information about the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

* * @param notes * Metadata providing additional information about the label.

*

* Data in this field will be retained for service usage. Follow best practices for the security of your * data. */ public void setNotes(String notes) { this.notes = notes; } /** *

* Metadata providing additional information about the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

* * @return Metadata providing additional information about the label.

*

* Data in this field will be retained for service usage. Follow best practices for the security of your * data. */ public String getNotes() { return this.notes; } /** *

* Metadata providing additional information about the label. *

*

* Data in this field will be retained for service usage. Follow best practices for the security of your data. *

* * @param notes * Metadata providing additional information about the label.

*

* Data in this field will be retained for service usage. Follow best practices for the security of your * data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withNotes(String notes) { setNotes(notes); return this; } /** *

* Indicates that a label pertains to a particular piece of equipment. *

* * @param equipment * Indicates that a label pertains to a particular piece of equipment. */ public void setEquipment(String equipment) { this.equipment = equipment; } /** *

* Indicates that a label pertains to a particular piece of equipment. *

* * @return Indicates that a label pertains to a particular piece of equipment. */ public String getEquipment() { return this.equipment; } /** *

* Indicates that a label pertains to a particular piece of equipment. *

* * @param equipment * Indicates that a label pertains to a particular piece of equipment. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withEquipment(String equipment) { setEquipment(equipment); return this; } /** *

* The time at which the label was created. *

* * @param createdAt * The time at which the label was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time at which the label was created. *

* * @return The time at which the label was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time at which the label was created. *

* * @param createdAt * The time at which the label was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLabelResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); 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 (getLabelGroupName() != null) sb.append("LabelGroupName: ").append(getLabelGroupName()).append(","); if (getLabelGroupArn() != null) sb.append("LabelGroupArn: ").append(getLabelGroupArn()).append(","); if (getLabelId() != null) sb.append("LabelId: ").append(getLabelId()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getRating() != null) sb.append("Rating: ").append(getRating()).append(","); if (getFaultCode() != null) sb.append("FaultCode: ").append(getFaultCode()).append(","); if (getNotes() != null) sb.append("Notes: ").append(getNotes()).append(","); if (getEquipment() != null) sb.append("Equipment: ").append(getEquipment()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLabelResult == false) return false; DescribeLabelResult other = (DescribeLabelResult) obj; if (other.getLabelGroupName() == null ^ this.getLabelGroupName() == null) return false; if (other.getLabelGroupName() != null && other.getLabelGroupName().equals(this.getLabelGroupName()) == false) return false; if (other.getLabelGroupArn() == null ^ this.getLabelGroupArn() == null) return false; if (other.getLabelGroupArn() != null && other.getLabelGroupArn().equals(this.getLabelGroupArn()) == false) return false; if (other.getLabelId() == null ^ this.getLabelId() == null) return false; if (other.getLabelId() != null && other.getLabelId().equals(this.getLabelId()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getRating() == null ^ this.getRating() == null) return false; if (other.getRating() != null && other.getRating().equals(this.getRating()) == false) return false; if (other.getFaultCode() == null ^ this.getFaultCode() == null) return false; if (other.getFaultCode() != null && other.getFaultCode().equals(this.getFaultCode()) == false) return false; if (other.getNotes() == null ^ this.getNotes() == null) return false; if (other.getNotes() != null && other.getNotes().equals(this.getNotes()) == false) return false; if (other.getEquipment() == null ^ this.getEquipment() == null) return false; if (other.getEquipment() != null && other.getEquipment().equals(this.getEquipment()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLabelGroupName() == null) ? 0 : getLabelGroupName().hashCode()); hashCode = prime * hashCode + ((getLabelGroupArn() == null) ? 0 : getLabelGroupArn().hashCode()); hashCode = prime * hashCode + ((getLabelId() == null) ? 0 : getLabelId().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getRating() == null) ? 0 : getRating().hashCode()); hashCode = prime * hashCode + ((getFaultCode() == null) ? 0 : getFaultCode().hashCode()); hashCode = prime * hashCode + ((getNotes() == null) ? 0 : getNotes().hashCode()); hashCode = prime * hashCode + ((getEquipment() == null) ? 0 : getEquipment().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); return hashCode; } @Override public DescribeLabelResult clone() { try { return (DescribeLabelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy