/* * Copyright 2012-2017 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; /** * <p> * Represents information about the remote access session. * </p> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RemoteAccessSession" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RemoteAccessSession implements Serializable, Cloneable, StructuredPojo { /** * <p> * The Amazon Resource Name (ARN) of the remote access session. * </p> */ private String arn; /** * <p> * The name of the remote access session. * </p> */ private String name; /** * <p> * The date and time the remote access session was created. * </p> */ private java.util.Date created; /** * <p> * The status of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * </ul> */ private String status; /** * <p> * The result of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * </ul> */ private String result; /** * <p> * A message about the remote access session. * </p> */ private String message; /** * <p> * The date and time the remote access session was started. * </p> */ private java.util.Date started; /** * <p> * The date and time the remote access session was stopped. * </p> */ private java.util.Date stopped; /** * <p> * The device (phone or tablet) used in the remote access session. * </p> */ private Device device; /** * <p> * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS Device * Farm terminology</a>." * </p> */ private String billingMethod; /** * <p> * The number of minutes a device is used in a remote access sesssion (including setup and teardown minutes). * </p> */ private DeviceMinutes deviceMinutes; /** * <p> * The endpoint for the remote access sesssion. * </p> */ private String endpoint; /** * <p> * The Amazon Resource Name (ARN) of the remote access session. * </p> * * @param arn * The Amazon Resource Name (ARN) of the remote access session. */ public void setArn(String arn) { this.arn = arn; } /** * <p> * The Amazon Resource Name (ARN) of the remote access session. * </p> * * @return The Amazon Resource Name (ARN) of the remote access session. */ public String getArn() { return this.arn; } /** * <p> * The Amazon Resource Name (ARN) of the remote access session. * </p> * * @param arn * The Amazon Resource Name (ARN) of the remote access session. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withArn(String arn) { setArn(arn); return this; } /** * <p> * The name of the remote access session. * </p> * * @param name * The name of the remote access session. */ public void setName(String name) { this.name = name; } /** * <p> * The name of the remote access session. * </p> * * @return The name of the remote access session. */ public String getName() { return this.name; } /** * <p> * The name of the remote access session. * </p> * * @param name * The name of the remote access session. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withName(String name) { setName(name); return this; } /** * <p> * The date and time the remote access session was created. * </p> * * @param created * The date and time the remote access session was created. */ public void setCreated(java.util.Date created) { this.created = created; } /** * <p> * The date and time the remote access session was created. * </p> * * @return The date and time the remote access session was created. */ public java.util.Date getCreated() { return this.created; } /** * <p> * The date and time the remote access session was created. * </p> * * @param created * The date and time the remote access session was created. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withCreated(java.util.Date created) { setCreated(created); return this; } /** * <p> * The status of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * </ul> * * @param status * The status of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * @see ExecutionStatus */ public void setStatus(String status) { this.status = status; } /** * <p> * The status of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * </ul> * * @return The status of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * @see ExecutionStatus */ public String getStatus() { return this.status; } /** * <p> * The status of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * </ul> * * @param status * The status of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionStatus */ public RemoteAccessSession withStatus(String status) { setStatus(status); return this; } /** * <p> * The status of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * </ul> * * @param status * The status of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * @see ExecutionStatus */ public void setStatus(ExecutionStatus status) { this.status = status.toString(); } /** * <p> * The status of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * </ul> * * @param status * The status of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending status. * </p> * </li> * <li> * <p> * PENDING_CONCURRENCY: A pending concurrency status. * </p> * </li> * <li> * <p> * PENDING_DEVICE: A pending device status. * </p> * </li> * <li> * <p> * PROCESSING: A processing status. * </p> * </li> * <li> * <p> * SCHEDULING: A scheduling status. * </p> * </li> * <li> * <p> * PREPARING: A preparing status. * </p> * </li> * <li> * <p> * RUNNING: A running status. * </p> * </li> * <li> * <p> * COMPLETED: A completed status. * </p> * </li> * <li> * <p> * STOPPING: A stopping status. * </p> * </li> * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionStatus */ public RemoteAccessSession withStatus(ExecutionStatus status) { setStatus(status); return this; } /** * <p> * The result of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * </ul> * * @param result * The result of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * @see ExecutionResult */ public void setResult(String result) { this.result = result; } /** * <p> * The result of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * </ul> * * @return The result of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * @see ExecutionResult */ public String getResult() { return this.result; } /** * <p> * The result of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * </ul> * * @param result * The result of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionResult */ public RemoteAccessSession withResult(String result) { setResult(result); return this; } /** * <p> * The result of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * </ul> * * @param result * The result of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * @see ExecutionResult */ public void setResult(ExecutionResult result) { this.result = result.toString(); } /** * <p> * The result of the remote access session. Can be any of the following: * </p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * </ul> * * @param result * The result of the remote access session. Can be any of the following:</p> * <ul> * <li> * <p> * PENDING: A pending condition. * </p> * </li> * <li> * <p> * PASSED: A passing condition. * </p> * </li> * <li> * <p> * WARNED: A warning condition. * </p> * </li> * <li> * <p> * FAILED: A failed condition. * </p> * </li> * <li> * <p> * SKIPPED: A skipped condition. * </p> * </li> * <li> * <p> * ERRORED: An error condition. * </p> * </li> * <li> * <p> * STOPPED: A stopped condition. * </p> * </li> * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionResult */ public RemoteAccessSession withResult(ExecutionResult result) { setResult(result); return this; } /** * <p> * A message about the remote access session. * </p> * * @param message * A message about the remote access session. */ public void setMessage(String message) { this.message = message; } /** * <p> * A message about the remote access session. * </p> * * @return A message about the remote access session. */ public String getMessage() { return this.message; } /** * <p> * A message about the remote access session. * </p> * * @param message * A message about the remote access session. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withMessage(String message) { setMessage(message); return this; } /** * <p> * The date and time the remote access session was started. * </p> * * @param started * The date and time the remote access session was started. */ public void setStarted(java.util.Date started) { this.started = started; } /** * <p> * The date and time the remote access session was started. * </p> * * @return The date and time the remote access session was started. */ public java.util.Date getStarted() { return this.started; } /** * <p> * The date and time the remote access session was started. * </p> * * @param started * The date and time the remote access session was started. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withStarted(java.util.Date started) { setStarted(started); return this; } /** * <p> * The date and time the remote access session was stopped. * </p> * * @param stopped * The date and time the remote access session was stopped. */ public void setStopped(java.util.Date stopped) { this.stopped = stopped; } /** * <p> * The date and time the remote access session was stopped. * </p> * * @return The date and time the remote access session was stopped. */ public java.util.Date getStopped() { return this.stopped; } /** * <p> * The date and time the remote access session was stopped. * </p> * * @param stopped * The date and time the remote access session was stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withStopped(java.util.Date stopped) { setStopped(stopped); return this; } /** * <p> * The device (phone or tablet) used in the remote access session. * </p> * * @param device * The device (phone or tablet) used in the remote access session. */ public void setDevice(Device device) { this.device = device; } /** * <p> * The device (phone or tablet) used in the remote access session. * </p> * * @return The device (phone or tablet) used in the remote access session. */ public Device getDevice() { return this.device; } /** * <p> * The device (phone or tablet) used in the remote access session. * </p> * * @param device * The device (phone or tablet) used in the remote access session. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withDevice(Device device) { setDevice(device); return this; } /** * <p> * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS Device * Farm terminology</a>." * </p> * * @param billingMethod * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS * Device Farm terminology</a>." * @see BillingMethod */ public void setBillingMethod(String billingMethod) { this.billingMethod = billingMethod; } /** * <p> * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS Device * Farm terminology</a>." * </p> * * @return The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS * Device Farm terminology</a>." * @see BillingMethod */ public String getBillingMethod() { return this.billingMethod; } /** * <p> * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS Device * Farm terminology</a>." * </p> * * @param billingMethod * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS * Device Farm terminology</a>." * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMethod */ public RemoteAccessSession withBillingMethod(String billingMethod) { setBillingMethod(billingMethod); return this; } /** * <p> * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS Device * Farm terminology</a>." * </p> * * @param billingMethod * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS * Device Farm terminology</a>." * @see BillingMethod */ public void setBillingMethod(BillingMethod billingMethod) { this.billingMethod = billingMethod.toString(); } /** * <p> * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS Device * Farm terminology</a>." * </p> * * @param billingMethod * The billing method of the remote access session. Possible values include <code>METERED</code> or * <code>UNMETERED</code>. For more information about metered devices, see <a * href="http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology">AWS * Device Farm terminology</a>." * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMethod */ public RemoteAccessSession withBillingMethod(BillingMethod billingMethod) { setBillingMethod(billingMethod); return this; } /** * <p> * The number of minutes a device is used in a remote access sesssion (including setup and teardown minutes). * </p> * * @param deviceMinutes * The number of minutes a device is used in a remote access sesssion (including setup and teardown minutes). */ public void setDeviceMinutes(DeviceMinutes deviceMinutes) { this.deviceMinutes = deviceMinutes; } /** * <p> * The number of minutes a device is used in a remote access sesssion (including setup and teardown minutes). * </p> * * @return The number of minutes a device is used in a remote access sesssion (including setup and teardown * minutes). */ public DeviceMinutes getDeviceMinutes() { return this.deviceMinutes; } /** * <p> * The number of minutes a device is used in a remote access sesssion (including setup and teardown minutes). * </p> * * @param deviceMinutes * The number of minutes a device is used in a remote access sesssion (including setup and teardown minutes). * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withDeviceMinutes(DeviceMinutes deviceMinutes) { setDeviceMinutes(deviceMinutes); return this; } /** * <p> * The endpoint for the remote access sesssion. * </p> * * @param endpoint * The endpoint for the remote access sesssion. */ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } /** * <p> * The endpoint for the remote access sesssion. * </p> * * @return The endpoint for the remote access sesssion. */ public String getEndpoint() { return this.endpoint; } /** * <p> * The endpoint for the remote access sesssion. * </p> * * @param endpoint * The endpoint for the remote access sesssion. * @return Returns a reference to this object so that method calls can be chained together. */ public RemoteAccessSession withEndpoint(String endpoint) { setEndpoint(endpoint); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getResult() != null) sb.append("Result: ").append(getResult()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getStarted() != null) sb.append("Started: ").append(getStarted()).append(","); if (getStopped() != null) sb.append("Stopped: ").append(getStopped()).append(","); if (getDevice() != null) sb.append("Device: ").append(getDevice()).append(","); if (getBillingMethod() != null) sb.append("BillingMethod: ").append(getBillingMethod()).append(","); if (getDeviceMinutes() != null) sb.append("DeviceMinutes: ").append(getDeviceMinutes()).append(","); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RemoteAccessSession == false) return false; RemoteAccessSession other = (RemoteAccessSession) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getResult() == null ^ this.getResult() == null) return false; if (other.getResult() != null && other.getResult().equals(this.getResult()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getStarted() == null ^ this.getStarted() == null) return false; if (other.getStarted() != null && other.getStarted().equals(this.getStarted()) == false) return false; if (other.getStopped() == null ^ this.getStopped() == null) return false; if (other.getStopped() != null && other.getStopped().equals(this.getStopped()) == false) return false; if (other.getDevice() == null ^ this.getDevice() == null) return false; if (other.getDevice() != null && other.getDevice().equals(this.getDevice()) == false) return false; if (other.getBillingMethod() == null ^ this.getBillingMethod() == null) return false; if (other.getBillingMethod() != null && other.getBillingMethod().equals(this.getBillingMethod()) == false) return false; if (other.getDeviceMinutes() == null ^ this.getDeviceMinutes() == null) return false; if (other.getDeviceMinutes() != null && other.getDeviceMinutes().equals(this.getDeviceMinutes()) == false) return false; if (other.getEndpoint() == null ^ this.getEndpoint() == null) return false; if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == 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 + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getResult() == null) ? 0 : getResult().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getStarted() == null) ? 0 : getStarted().hashCode()); hashCode = prime * hashCode + ((getStopped() == null) ? 0 : getStopped().hashCode()); hashCode = prime * hashCode + ((getDevice() == null) ? 0 : getDevice().hashCode()); hashCode = prime * hashCode + ((getBillingMethod() == null) ? 0 : getBillingMethod().hashCode()); hashCode = prime * hashCode + ((getDeviceMinutes() == null) ? 0 : getDeviceMinutes().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); return hashCode; } @Override public RemoteAccessSession clone() { try { return (RemoteAccessSession) 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.RemoteAccessSessionMarshaller.getInstance().marshall(this, protocolMarshaller); } }