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

com.amazonaws.services.devicefarm.model.TestGridSession 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A TestGridSession is a single instance of a browser launched from the URL provided by a call to * CreateTestGridUrl. *

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

* The ARN of the session. *

*/ private String arn; /** *

* The state of the session. *

*/ private String status; /** *

* The time that the session was started. *

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

* The time the session ended. *

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

* The number of billed minutes that were used for this session. *

*/ private Double billingMinutes; /** *

* A JSON object of options and parameters passed to the Selenium WebDriver. *

*/ private String seleniumProperties; /** *

* The ARN of the session. *

* * @param arn * The ARN of the session. */ public void setArn(String arn) { this.arn = arn; } /** *

* The ARN of the session. *

* * @return The ARN of the session. */ public String getArn() { return this.arn; } /** *

* The ARN of the session. *

* * @param arn * The ARN of the session. * @return Returns a reference to this object so that method calls can be chained together. */ public TestGridSession withArn(String arn) { setArn(arn); return this; } /** *

* The state of the session. *

* * @param status * The state of the session. * @see TestGridSessionStatus */ public void setStatus(String status) { this.status = status; } /** *

* The state of the session. *

* * @return The state of the session. * @see TestGridSessionStatus */ public String getStatus() { return this.status; } /** *

* The state of the session. *

* * @param status * The state of the session. * @return Returns a reference to this object so that method calls can be chained together. * @see TestGridSessionStatus */ public TestGridSession withStatus(String status) { setStatus(status); return this; } /** *

* The state of the session. *

* * @param status * The state of the session. * @return Returns a reference to this object so that method calls can be chained together. * @see TestGridSessionStatus */ public TestGridSession withStatus(TestGridSessionStatus status) { this.status = status.toString(); return this; } /** *

* The time that the session was started. *

* * @param created * The time that the session was started. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* The time that the session was started. *

* * @return The time that the session was started. */ public java.util.Date getCreated() { return this.created; } /** *

* The time that the session was started. *

* * @param created * The time that the session was started. * @return Returns a reference to this object so that method calls can be chained together. */ public TestGridSession withCreated(java.util.Date created) { setCreated(created); return this; } /** *

* The time the session ended. *

* * @param ended * The time the session ended. */ public void setEnded(java.util.Date ended) { this.ended = ended; } /** *

* The time the session ended. *

* * @return The time the session ended. */ public java.util.Date getEnded() { return this.ended; } /** *

* The time the session ended. *

* * @param ended * The time the session ended. * @return Returns a reference to this object so that method calls can be chained together. */ public TestGridSession withEnded(java.util.Date ended) { setEnded(ended); return this; } /** *

* The number of billed minutes that were used for this session. *

* * @param billingMinutes * The number of billed minutes that were used for this session. */ public void setBillingMinutes(Double billingMinutes) { this.billingMinutes = billingMinutes; } /** *

* The number of billed minutes that were used for this session. *

* * @return The number of billed minutes that were used for this session. */ public Double getBillingMinutes() { return this.billingMinutes; } /** *

* The number of billed minutes that were used for this session. *

* * @param billingMinutes * The number of billed minutes that were used for this session. * @return Returns a reference to this object so that method calls can be chained together. */ public TestGridSession withBillingMinutes(Double billingMinutes) { setBillingMinutes(billingMinutes); return this; } /** *

* A JSON object of options and parameters passed to the Selenium WebDriver. *

* * @param seleniumProperties * A JSON object of options and parameters passed to the Selenium WebDriver. */ public void setSeleniumProperties(String seleniumProperties) { this.seleniumProperties = seleniumProperties; } /** *

* A JSON object of options and parameters passed to the Selenium WebDriver. *

* * @return A JSON object of options and parameters passed to the Selenium WebDriver. */ public String getSeleniumProperties() { return this.seleniumProperties; } /** *

* A JSON object of options and parameters passed to the Selenium WebDriver. *

* * @param seleniumProperties * A JSON object of options and parameters passed to the Selenium WebDriver. * @return Returns a reference to this object so that method calls can be chained together. */ public TestGridSession withSeleniumProperties(String seleniumProperties) { setSeleniumProperties(seleniumProperties); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getEnded() != null) sb.append("Ended: ").append(getEnded()).append(","); if (getBillingMinutes() != null) sb.append("BillingMinutes: ").append(getBillingMinutes()).append(","); if (getSeleniumProperties() != null) sb.append("SeleniumProperties: ").append(getSeleniumProperties()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TestGridSession == false) return false; TestGridSession other = (TestGridSession) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getEnded() == null ^ this.getEnded() == null) return false; if (other.getEnded() != null && other.getEnded().equals(this.getEnded()) == false) return false; if (other.getBillingMinutes() == null ^ this.getBillingMinutes() == null) return false; if (other.getBillingMinutes() != null && other.getBillingMinutes().equals(this.getBillingMinutes()) == false) return false; if (other.getSeleniumProperties() == null ^ this.getSeleniumProperties() == null) return false; if (other.getSeleniumProperties() != null && other.getSeleniumProperties().equals(this.getSeleniumProperties()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getEnded() == null) ? 0 : getEnded().hashCode()); hashCode = prime * hashCode + ((getBillingMinutes() == null) ? 0 : getBillingMinutes().hashCode()); hashCode = prime * hashCode + ((getSeleniumProperties() == null) ? 0 : getSeleniumProperties().hashCode()); return hashCode; } @Override public TestGridSession clone() { try { return (TestGridSession) 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.devicefarm.model.transform.TestGridSessionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy