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

com.amazonaws.services.devicefarm.model.ListTestGridSessionsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Device Farm module holds the client classes that are used for communicating with AWS Device Farm

There is a newer version: 1.12.778
Show 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.devicefarm.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 ListTestGridSessionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* ARN of a TestGridProject. *

*/ private String projectArn; /** *

* Return only sessions in this state. *

*/ private String status; /** *

* Return only sessions created after this time. *

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

* Return only sessions created before this time. *

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

* Return only sessions that ended after this time. *

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

* Return only sessions that ended before this time. *

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

* Return only this many results at a time. *

*/ private Integer maxResult; /** *

* Pagination token. *

*/ private String nextToken; /** *

* ARN of a TestGridProject. *

* * @param projectArn * ARN of a TestGridProject. */ public void setProjectArn(String projectArn) { this.projectArn = projectArn; } /** *

* ARN of a TestGridProject. *

* * @return ARN of a TestGridProject. */ public String getProjectArn() { return this.projectArn; } /** *

* ARN of a TestGridProject. *

* * @param projectArn * ARN of a TestGridProject. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withProjectArn(String projectArn) { setProjectArn(projectArn); return this; } /** *

* Return only sessions in this state. *

* * @param status * Return only sessions in this state. * @see TestGridSessionStatus */ public void setStatus(String status) { this.status = status; } /** *

* Return only sessions in this state. *

* * @return Return only sessions in this state. * @see TestGridSessionStatus */ public String getStatus() { return this.status; } /** *

* Return only sessions in this state. *

* * @param status * Return only sessions in this state. * @return Returns a reference to this object so that method calls can be chained together. * @see TestGridSessionStatus */ public ListTestGridSessionsRequest withStatus(String status) { setStatus(status); return this; } /** *

* Return only sessions in this state. *

* * @param status * Return only sessions in this state. * @return Returns a reference to this object so that method calls can be chained together. * @see TestGridSessionStatus */ public ListTestGridSessionsRequest withStatus(TestGridSessionStatus status) { this.status = status.toString(); return this; } /** *

* Return only sessions created after this time. *

* * @param creationTimeAfter * Return only sessions created after this time. */ public void setCreationTimeAfter(java.util.Date creationTimeAfter) { this.creationTimeAfter = creationTimeAfter; } /** *

* Return only sessions created after this time. *

* * @return Return only sessions created after this time. */ public java.util.Date getCreationTimeAfter() { return this.creationTimeAfter; } /** *

* Return only sessions created after this time. *

* * @param creationTimeAfter * Return only sessions created after this time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) { setCreationTimeAfter(creationTimeAfter); return this; } /** *

* Return only sessions created before this time. *

* * @param creationTimeBefore * Return only sessions created before this time. */ public void setCreationTimeBefore(java.util.Date creationTimeBefore) { this.creationTimeBefore = creationTimeBefore; } /** *

* Return only sessions created before this time. *

* * @return Return only sessions created before this time. */ public java.util.Date getCreationTimeBefore() { return this.creationTimeBefore; } /** *

* Return only sessions created before this time. *

* * @param creationTimeBefore * Return only sessions created before this time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) { setCreationTimeBefore(creationTimeBefore); return this; } /** *

* Return only sessions that ended after this time. *

* * @param endTimeAfter * Return only sessions that ended after this time. */ public void setEndTimeAfter(java.util.Date endTimeAfter) { this.endTimeAfter = endTimeAfter; } /** *

* Return only sessions that ended after this time. *

* * @return Return only sessions that ended after this time. */ public java.util.Date getEndTimeAfter() { return this.endTimeAfter; } /** *

* Return only sessions that ended after this time. *

* * @param endTimeAfter * Return only sessions that ended after this time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withEndTimeAfter(java.util.Date endTimeAfter) { setEndTimeAfter(endTimeAfter); return this; } /** *

* Return only sessions that ended before this time. *

* * @param endTimeBefore * Return only sessions that ended before this time. */ public void setEndTimeBefore(java.util.Date endTimeBefore) { this.endTimeBefore = endTimeBefore; } /** *

* Return only sessions that ended before this time. *

* * @return Return only sessions that ended before this time. */ public java.util.Date getEndTimeBefore() { return this.endTimeBefore; } /** *

* Return only sessions that ended before this time. *

* * @param endTimeBefore * Return only sessions that ended before this time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withEndTimeBefore(java.util.Date endTimeBefore) { setEndTimeBefore(endTimeBefore); return this; } /** *

* Return only this many results at a time. *

* * @param maxResult * Return only this many results at a time. */ public void setMaxResult(Integer maxResult) { this.maxResult = maxResult; } /** *

* Return only this many results at a time. *

* * @return Return only this many results at a time. */ public Integer getMaxResult() { return this.maxResult; } /** *

* Return only this many results at a time. *

* * @param maxResult * Return only this many results at a time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withMaxResult(Integer maxResult) { setMaxResult(maxResult); return this; } /** *

* Pagination token. *

* * @param nextToken * Pagination token. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Pagination token. *

* * @return Pagination token. */ public String getNextToken() { return this.nextToken; } /** *

* Pagination token. *

* * @param nextToken * Pagination token. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTestGridSessionsRequest withNextToken(String nextToken) { setNextToken(nextToken); 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 (getProjectArn() != null) sb.append("ProjectArn: ").append(getProjectArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationTimeAfter() != null) sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(","); if (getCreationTimeBefore() != null) sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(","); if (getEndTimeAfter() != null) sb.append("EndTimeAfter: ").append(getEndTimeAfter()).append(","); if (getEndTimeBefore() != null) sb.append("EndTimeBefore: ").append(getEndTimeBefore()).append(","); if (getMaxResult() != null) sb.append("MaxResult: ").append(getMaxResult()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTestGridSessionsRequest == false) return false; ListTestGridSessionsRequest other = (ListTestGridSessionsRequest) obj; if (other.getProjectArn() == null ^ this.getProjectArn() == null) return false; if (other.getProjectArn() != null && other.getProjectArn().equals(this.getProjectArn()) == 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.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) return false; if (other.getCreationTimeAfter() != null && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false) return false; if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null) return false; if (other.getCreationTimeBefore() != null && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false) return false; if (other.getEndTimeAfter() == null ^ this.getEndTimeAfter() == null) return false; if (other.getEndTimeAfter() != null && other.getEndTimeAfter().equals(this.getEndTimeAfter()) == false) return false; if (other.getEndTimeBefore() == null ^ this.getEndTimeBefore() == null) return false; if (other.getEndTimeBefore() != null && other.getEndTimeBefore().equals(this.getEndTimeBefore()) == false) return false; if (other.getMaxResult() == null ^ this.getMaxResult() == null) return false; if (other.getMaxResult() != null && other.getMaxResult().equals(this.getMaxResult()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjectArn() == null) ? 0 : getProjectArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); hashCode = prime * hashCode + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); hashCode = prime * hashCode + ((getEndTimeAfter() == null) ? 0 : getEndTimeAfter().hashCode()); hashCode = prime * hashCode + ((getEndTimeBefore() == null) ? 0 : getEndTimeBefore().hashCode()); hashCode = prime * hashCode + ((getMaxResult() == null) ? 0 : getMaxResult().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListTestGridSessionsRequest clone() { return (ListTestGridSessionsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy