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

com.amazonaws.services.lookoutequipment.model.ListLabelsRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

* Returns the name of the label group. *

*/ private String labelGroupName; /** *

* Returns all the labels with a end time equal to or later than the start time given. *

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

* Returns all labels with a start time earlier than the end time given. *

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

* Returns labels with a particular fault code. *

*/ private String faultCode; /** *

* Lists the labels that pertain to a particular piece of equipment. *

*/ private String equipment; /** *

* An opaque pagination token indicating where to continue the listing of label groups. *

*/ private String nextToken; /** *

* Specifies the maximum number of labels to list. *

*/ private Integer maxResults; /** *

* Returns the name of the label group. *

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

* Returns the name of the label group. *

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

* Returns the name of the label group. *

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

* Returns all the labels with a end time equal to or later than the start time given. *

* * @param intervalStartTime * Returns all the labels with a end time equal to or later than the start time given. */ public void setIntervalStartTime(java.util.Date intervalStartTime) { this.intervalStartTime = intervalStartTime; } /** *

* Returns all the labels with a end time equal to or later than the start time given. *

* * @return Returns all the labels with a end time equal to or later than the start time given. */ public java.util.Date getIntervalStartTime() { return this.intervalStartTime; } /** *

* Returns all the labels with a end time equal to or later than the start time given. *

* * @param intervalStartTime * Returns all the labels with a end time equal to or later than the start time given. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLabelsRequest withIntervalStartTime(java.util.Date intervalStartTime) { setIntervalStartTime(intervalStartTime); return this; } /** *

* Returns all labels with a start time earlier than the end time given. *

* * @param intervalEndTime * Returns all labels with a start time earlier than the end time given. */ public void setIntervalEndTime(java.util.Date intervalEndTime) { this.intervalEndTime = intervalEndTime; } /** *

* Returns all labels with a start time earlier than the end time given. *

* * @return Returns all labels with a start time earlier than the end time given. */ public java.util.Date getIntervalEndTime() { return this.intervalEndTime; } /** *

* Returns all labels with a start time earlier than the end time given. *

* * @param intervalEndTime * Returns all labels with a start time earlier than the end time given. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLabelsRequest withIntervalEndTime(java.util.Date intervalEndTime) { setIntervalEndTime(intervalEndTime); return this; } /** *

* Returns labels with a particular fault code. *

* * @param faultCode * Returns labels with a particular fault code. */ public void setFaultCode(String faultCode) { this.faultCode = faultCode; } /** *

* Returns labels with a particular fault code. *

* * @return Returns labels with a particular fault code. */ public String getFaultCode() { return this.faultCode; } /** *

* Returns labels with a particular fault code. *

* * @param faultCode * Returns labels with a particular fault code. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLabelsRequest withFaultCode(String faultCode) { setFaultCode(faultCode); return this; } /** *

* Lists the labels that pertain to a particular piece of equipment. *

* * @param equipment * Lists the labels that pertain to a particular piece of equipment. */ public void setEquipment(String equipment) { this.equipment = equipment; } /** *

* Lists the labels that pertain to a particular piece of equipment. *

* * @return Lists the labels that pertain to a particular piece of equipment. */ public String getEquipment() { return this.equipment; } /** *

* Lists the labels that pertain to a particular piece of equipment. *

* * @param equipment * Lists the labels that pertain to a particular piece of equipment. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLabelsRequest withEquipment(String equipment) { setEquipment(equipment); return this; } /** *

* An opaque pagination token indicating where to continue the listing of label groups. *

* * @param nextToken * An opaque pagination token indicating where to continue the listing of label groups. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* An opaque pagination token indicating where to continue the listing of label groups. *

* * @return An opaque pagination token indicating where to continue the listing of label groups. */ public String getNextToken() { return this.nextToken; } /** *

* An opaque pagination token indicating where to continue the listing of label groups. *

* * @param nextToken * An opaque pagination token indicating where to continue the listing of label groups. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLabelsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Specifies the maximum number of labels to list. *

* * @param maxResults * Specifies the maximum number of labels to list. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* Specifies the maximum number of labels to list. *

* * @return Specifies the maximum number of labels to list. */ public Integer getMaxResults() { return this.maxResults; } /** *

* Specifies the maximum number of labels to list. *

* * @param maxResults * Specifies the maximum number of labels to list. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLabelsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); 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 (getIntervalStartTime() != null) sb.append("IntervalStartTime: ").append(getIntervalStartTime()).append(","); if (getIntervalEndTime() != null) sb.append("IntervalEndTime: ").append(getIntervalEndTime()).append(","); if (getFaultCode() != null) sb.append("FaultCode: ").append(getFaultCode()).append(","); if (getEquipment() != null) sb.append("Equipment: ").append(getEquipment()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListLabelsRequest == false) return false; ListLabelsRequest other = (ListLabelsRequest) obj; if (other.getLabelGroupName() == null ^ this.getLabelGroupName() == null) return false; if (other.getLabelGroupName() != null && other.getLabelGroupName().equals(this.getLabelGroupName()) == false) return false; if (other.getIntervalStartTime() == null ^ this.getIntervalStartTime() == null) return false; if (other.getIntervalStartTime() != null && other.getIntervalStartTime().equals(this.getIntervalStartTime()) == false) return false; if (other.getIntervalEndTime() == null ^ this.getIntervalEndTime() == null) return false; if (other.getIntervalEndTime() != null && other.getIntervalEndTime().equals(this.getIntervalEndTime()) == 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.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == 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 + ((getIntervalStartTime() == null) ? 0 : getIntervalStartTime().hashCode()); hashCode = prime * hashCode + ((getIntervalEndTime() == null) ? 0 : getIntervalEndTime().hashCode()); hashCode = prime * hashCode + ((getFaultCode() == null) ? 0 : getFaultCode().hashCode()); hashCode = prime * hashCode + ((getEquipment() == null) ? 0 : getEquipment().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public ListLabelsRequest clone() { return (ListLabelsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy