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

com.amazonaws.services.lookoutequipment.model.LabelSummary 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

The newest version!
/*
 * 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.lookoutequipment.model;

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

/**
 * 

* Information about the label. *

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

* The name of the label group. *

*/ private String labelGroupName; /** *

* The ID of the label. *

*/ private String labelId; /** *

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

*/ private String labelGroupArn; /** *

* The timestamp indicating the start of the label. *

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

* The timestamp indicating the end of the 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; /** *

* 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 label group. *

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

* The name of the label group. *

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

* The name of the label group. *

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

* The ID of the label. *

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

* The ID of the label. *

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

* The ID of the label. *

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

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

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

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

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

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

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

* The timestamp indicating the start of the label. *

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

* The timestamp indicating the start of the label. *

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

* The timestamp indicating the start of the label. *

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

* The timestamp indicating the end of the label. *

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

* The timestamp indicating the end of the label. *

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

* The timestamp indicating the end of the label. *

* * @param endTime * The timestamp indicating the end of the label. * @return Returns a reference to this object so that method calls can be chained together. */ public LabelSummary 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 LabelSummary 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 LabelSummary 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 LabelSummary withFaultCode(String faultCode) { setFaultCode(faultCode); 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 LabelSummary 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 LabelSummary 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 (getLabelId() != null) sb.append("LabelId: ").append(getLabelId()).append(","); if (getLabelGroupArn() != null) sb.append("LabelGroupArn: ").append(getLabelGroupArn()).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 (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 LabelSummary == false) return false; LabelSummary other = (LabelSummary) obj; if (other.getLabelGroupName() == null ^ this.getLabelGroupName() == null) return false; if (other.getLabelGroupName() != null && other.getLabelGroupName().equals(this.getLabelGroupName()) == 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.getLabelGroupArn() == null ^ this.getLabelGroupArn() == null) return false; if (other.getLabelGroupArn() != null && other.getLabelGroupArn().equals(this.getLabelGroupArn()) == 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.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 + ((getLabelId() == null) ? 0 : getLabelId().hashCode()); hashCode = prime * hashCode + ((getLabelGroupArn() == null) ? 0 : getLabelGroupArn().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 + ((getEquipment() == null) ? 0 : getEquipment().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); return hashCode; } @Override public LabelSummary clone() { try { return (LabelSummary) 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.lookoutequipment.model.transform.LabelSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy