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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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;

/**
 * 

* Represents information about the remote access session. *

*/ public class RemoteAccessSession implements Serializable, Cloneable { /** *

* The Amazon Resource Name (ARN) of the remote access session. *

*/ private String arn; /** *

* The name of the remote access session. *

*/ private String name; /** *

* The date and time the remote access session was created. *

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

* The status of the remote access session. Can be any of the following: *

*
    *
  • *

    * PENDING: A pending status. *

    *
  • *
  • *

    * PENDING_CONCURRENCY: A pending concurrency status. *

    *
  • *
  • *

    * PENDING_DEVICE: A pending device status. *

    *
  • *
  • *

    * PROCESSING: A processing status. *

    *
  • *
  • *

    * SCHEDULING: A scheduling status. *

    *
  • *
  • *

    * PREPARING: A preparing status. *

    *
  • *
  • *

    * RUNNING: A running status. *

    *
  • *
  • *

    * COMPLETED: A completed status. *

    *
  • *
  • *

    * STOPPING: A stopping status. *

    *
  • *
*/ private String status; /** *

* The result of the remote access session. Can be any of the following: *

*
    *
  • *

    * PENDING: A pending condition. *

    *
  • *
  • *

    * PASSED: A passing condition. *

    *
  • *
  • *

    * WARNED: A warning condition. *

    *
  • *
  • *

    * FAILED: A failed condition. *

    *
  • *
  • *

    * SKIPPED: A skipped condition. *

    *
  • *
  • *

    * ERRORED: An error condition. *

    *
  • *
  • *

    * STOPPED: A stopped condition. *

    *
  • *
*/ private String result; /** *

* A message about the remote access session. *

*/ private String message; /** *

* The date and time the remote access session was started. *

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

* The date and time the remote access session was stopped. *

*/ private java.util.Date stopped; private Device device; /** *

* The billing method of the remote access session. Possible values include * METERED or UNMETERED. For more information * about metered devices, see AWS Device Farm terminology." *

*/ private String billingMethod; private DeviceMinutes deviceMinutes; /** *

* The endpoint for the remote access sesssion. *

*/ private String endpoint; /** *

* The Amazon Resource Name (ARN) of the remote access session. *

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

* The Amazon Resource Name (ARN) of the remote access session. *

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

* The Amazon Resource Name (ARN) of the remote access session. *

* * @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; } /** *

* The name of the remote access session. *

* * @param name * The name of the remote access session. */ public void setName(String name) { this.name = name; } /** *

* The name of the remote access session. *

* * @return The name of the remote access session. */ public String getName() { return this.name; } /** *

* The name of the remote access session. *

* * @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; } /** *

* The date and time the remote access session was created. *

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

* The date and time the remote access session was created. *

* * @return The date and time the remote access session was created. */ public java.util.Date getCreated() { return this.created; } /** *

* The date and time the remote access session was created. *

* * @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; } /** *

* The status of the remote access session. Can be any of the following: *

*
    *
  • *

    * PENDING: A pending status. *

    *
  • *
  • *

    * PENDING_CONCURRENCY: A pending concurrency status. *

    *
  • *
  • *

    * PENDING_DEVICE: A pending device status. *

    *
  • *
  • *

    * PROCESSING: A processing status. *

    *
  • *
  • *

    * SCHEDULING: A scheduling status. *

    *
  • *
  • *

    * PREPARING: A preparing status. *

    *
  • *
  • *

    * RUNNING: A running status. *

    *
  • *
  • *

    * COMPLETED: A completed status. *

    *
  • *
  • *

    * STOPPING: A stopping status. *

    *
  • *
* * @param status * The status of the remote access session. Can be any of the * following:

*
    *
  • *

    * PENDING: A pending status. *

    *
  • *
  • *

    * PENDING_CONCURRENCY: A pending concurrency status. *

    *
  • *
  • *

    * PENDING_DEVICE: A pending device status. *

    *
  • *
  • *

    * PROCESSING: A processing status. *

    *
  • *
  • *

    * SCHEDULING: A scheduling status. *

    *
  • *
  • *

    * PREPARING: A preparing status. *

    *
  • *
  • *

    * RUNNING: A running status. *

    *
  • *
  • *

    * COMPLETED: A completed status. *

    *
  • *
  • *

    * STOPPING: A stopping status. *

    *
  • * @see ExecutionStatus */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the remote access session. Can be any of the following: *

    *
      *
    • *

      * PENDING: A pending status. *

      *
    • *
    • *

      * PENDING_CONCURRENCY: A pending concurrency status. *

      *
    • *
    • *

      * PENDING_DEVICE: A pending device status. *

      *
    • *
    • *

      * PROCESSING: A processing status. *

      *
    • *
    • *

      * SCHEDULING: A scheduling status. *

      *
    • *
    • *

      * PREPARING: A preparing status. *

      *
    • *
    • *

      * RUNNING: A running status. *

      *
    • *
    • *

      * COMPLETED: A completed status. *

      *
    • *
    • *

      * STOPPING: A stopping status. *

      *
    • *
    * * @return The status of the remote access session. Can be any of the * following:

    *
      *
    • *

      * PENDING: A pending status. *

      *
    • *
    • *

      * PENDING_CONCURRENCY: A pending concurrency status. *

      *
    • *
    • *

      * PENDING_DEVICE: A pending device status. *

      *
    • *
    • *

      * PROCESSING: A processing status. *

      *
    • *
    • *

      * SCHEDULING: A scheduling status. *

      *
    • *
    • *

      * PREPARING: A preparing status. *

      *
    • *
    • *

      * RUNNING: A running status. *

      *
    • *
    • *

      * COMPLETED: A completed status. *

      *
    • *
    • *

      * STOPPING: A stopping status. *

      *
    • * @see ExecutionStatus */ public String getStatus() { return this.status; } /** *

      * The status of the remote access session. Can be any of the following: *

      *
        *
      • *

        * PENDING: A pending status. *

        *
      • *
      • *

        * PENDING_CONCURRENCY: A pending concurrency status. *

        *
      • *
      • *

        * PENDING_DEVICE: A pending device status. *

        *
      • *
      • *

        * PROCESSING: A processing status. *

        *
      • *
      • *

        * SCHEDULING: A scheduling status. *

        *
      • *
      • *

        * PREPARING: A preparing status. *

        *
      • *
      • *

        * RUNNING: A running status. *

        *
      • *
      • *

        * COMPLETED: A completed status. *

        *
      • *
      • *

        * STOPPING: A stopping status. *

        *
      • *
      * * @param status * The status of the remote access session. Can be any of the * following:

      *
        *
      • *

        * PENDING: A pending status. *

        *
      • *
      • *

        * PENDING_CONCURRENCY: A pending concurrency status. *

        *
      • *
      • *

        * PENDING_DEVICE: A pending device status. *

        *
      • *
      • *

        * PROCESSING: A processing status. *

        *
      • *
      • *

        * SCHEDULING: A scheduling status. *

        *
      • *
      • *

        * PREPARING: A preparing status. *

        *
      • *
      • *

        * RUNNING: A running status. *

        *
      • *
      • *

        * COMPLETED: A completed status. *

        *
      • *
      • *

        * STOPPING: A stopping status. *

        *
      • * @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; } /** *

        * The status of the remote access session. Can be any of the following: *

        *
          *
        • *

          * PENDING: A pending status. *

          *
        • *
        • *

          * PENDING_CONCURRENCY: A pending concurrency status. *

          *
        • *
        • *

          * PENDING_DEVICE: A pending device status. *

          *
        • *
        • *

          * PROCESSING: A processing status. *

          *
        • *
        • *

          * SCHEDULING: A scheduling status. *

          *
        • *
        • *

          * PREPARING: A preparing status. *

          *
        • *
        • *

          * RUNNING: A running status. *

          *
        • *
        • *

          * COMPLETED: A completed status. *

          *
        • *
        • *

          * STOPPING: A stopping status. *

          *
        • *
        * * @param status * The status of the remote access session. Can be any of the * following:

        *
          *
        • *

          * PENDING: A pending status. *

          *
        • *
        • *

          * PENDING_CONCURRENCY: A pending concurrency status. *

          *
        • *
        • *

          * PENDING_DEVICE: A pending device status. *

          *
        • *
        • *

          * PROCESSING: A processing status. *

          *
        • *
        • *

          * SCHEDULING: A scheduling status. *

          *
        • *
        • *

          * PREPARING: A preparing status. *

          *
        • *
        • *

          * RUNNING: A running status. *

          *
        • *
        • *

          * COMPLETED: A completed status. *

          *
        • *
        • *

          * STOPPING: A stopping status. *

          *
        • * @see ExecutionStatus */ public void setStatus(ExecutionStatus status) { this.status = status.toString(); } /** *

          * The status of the remote access session. Can be any of the following: *

          *
            *
          • *

            * PENDING: A pending status. *

            *
          • *
          • *

            * PENDING_CONCURRENCY: A pending concurrency status. *

            *
          • *
          • *

            * PENDING_DEVICE: A pending device status. *

            *
          • *
          • *

            * PROCESSING: A processing status. *

            *
          • *
          • *

            * SCHEDULING: A scheduling status. *

            *
          • *
          • *

            * PREPARING: A preparing status. *

            *
          • *
          • *

            * RUNNING: A running status. *

            *
          • *
          • *

            * COMPLETED: A completed status. *

            *
          • *
          • *

            * STOPPING: A stopping status. *

            *
          • *
          * * @param status * The status of the remote access session. Can be any of the * following:

          *
            *
          • *

            * PENDING: A pending status. *

            *
          • *
          • *

            * PENDING_CONCURRENCY: A pending concurrency status. *

            *
          • *
          • *

            * PENDING_DEVICE: A pending device status. *

            *
          • *
          • *

            * PROCESSING: A processing status. *

            *
          • *
          • *

            * SCHEDULING: A scheduling status. *

            *
          • *
          • *

            * PREPARING: A preparing status. *

            *
          • *
          • *

            * RUNNING: A running status. *

            *
          • *
          • *

            * COMPLETED: A completed status. *

            *
          • *
          • *

            * STOPPING: A stopping status. *

            *
          • * @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; } /** *

            * The result of the remote access session. Can be any of the following: *

            *
              *
            • *

              * PENDING: A pending condition. *

              *
            • *
            • *

              * PASSED: A passing condition. *

              *
            • *
            • *

              * WARNED: A warning condition. *

              *
            • *
            • *

              * FAILED: A failed condition. *

              *
            • *
            • *

              * SKIPPED: A skipped condition. *

              *
            • *
            • *

              * ERRORED: An error condition. *

              *
            • *
            • *

              * STOPPED: A stopped condition. *

              *
            • *
            * * @param result * The result of the remote access session. Can be any of the * following:

            *
              *
            • *

              * PENDING: A pending condition. *

              *
            • *
            • *

              * PASSED: A passing condition. *

              *
            • *
            • *

              * WARNED: A warning condition. *

              *
            • *
            • *

              * FAILED: A failed condition. *

              *
            • *
            • *

              * SKIPPED: A skipped condition. *

              *
            • *
            • *

              * ERRORED: An error condition. *

              *
            • *
            • *

              * STOPPED: A stopped condition. *

              *
            • * @see ExecutionResult */ public void setResult(String result) { this.result = result; } /** *

              * The result of the remote access session. Can be any of the following: *

              *
                *
              • *

                * PENDING: A pending condition. *

                *
              • *
              • *

                * PASSED: A passing condition. *

                *
              • *
              • *

                * WARNED: A warning condition. *

                *
              • *
              • *

                * FAILED: A failed condition. *

                *
              • *
              • *

                * SKIPPED: A skipped condition. *

                *
              • *
              • *

                * ERRORED: An error condition. *

                *
              • *
              • *

                * STOPPED: A stopped condition. *

                *
              • *
              * * @return The result of the remote access session. Can be any of the * following:

              *
                *
              • *

                * PENDING: A pending condition. *

                *
              • *
              • *

                * PASSED: A passing condition. *

                *
              • *
              • *

                * WARNED: A warning condition. *

                *
              • *
              • *

                * FAILED: A failed condition. *

                *
              • *
              • *

                * SKIPPED: A skipped condition. *

                *
              • *
              • *

                * ERRORED: An error condition. *

                *
              • *
              • *

                * STOPPED: A stopped condition. *

                *
              • * @see ExecutionResult */ public String getResult() { return this.result; } /** *

                * The result of the remote access session. Can be any of the following: *

                *
                  *
                • *

                  * PENDING: A pending condition. *

                  *
                • *
                • *

                  * PASSED: A passing condition. *

                  *
                • *
                • *

                  * WARNED: A warning condition. *

                  *
                • *
                • *

                  * FAILED: A failed condition. *

                  *
                • *
                • *

                  * SKIPPED: A skipped condition. *

                  *
                • *
                • *

                  * ERRORED: An error condition. *

                  *
                • *
                • *

                  * STOPPED: A stopped condition. *

                  *
                • *
                * * @param result * The result of the remote access session. Can be any of the * following:

                *
                  *
                • *

                  * PENDING: A pending condition. *

                  *
                • *
                • *

                  * PASSED: A passing condition. *

                  *
                • *
                • *

                  * WARNED: A warning condition. *

                  *
                • *
                • *

                  * FAILED: A failed condition. *

                  *
                • *
                • *

                  * SKIPPED: A skipped condition. *

                  *
                • *
                • *

                  * ERRORED: An error condition. *

                  *
                • *
                • *

                  * STOPPED: A stopped condition. *

                  *
                • * @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; } /** *

                  * The result of the remote access session. Can be any of the following: *

                  *
                    *
                  • *

                    * PENDING: A pending condition. *

                    *
                  • *
                  • *

                    * PASSED: A passing condition. *

                    *
                  • *
                  • *

                    * WARNED: A warning condition. *

                    *
                  • *
                  • *

                    * FAILED: A failed condition. *

                    *
                  • *
                  • *

                    * SKIPPED: A skipped condition. *

                    *
                  • *
                  • *

                    * ERRORED: An error condition. *

                    *
                  • *
                  • *

                    * STOPPED: A stopped condition. *

                    *
                  • *
                  * * @param result * The result of the remote access session. Can be any of the * following:

                  *
                    *
                  • *

                    * PENDING: A pending condition. *

                    *
                  • *
                  • *

                    * PASSED: A passing condition. *

                    *
                  • *
                  • *

                    * WARNED: A warning condition. *

                    *
                  • *
                  • *

                    * FAILED: A failed condition. *

                    *
                  • *
                  • *

                    * SKIPPED: A skipped condition. *

                    *
                  • *
                  • *

                    * ERRORED: An error condition. *

                    *
                  • *
                  • *

                    * STOPPED: A stopped condition. *

                    *
                  • * @see ExecutionResult */ public void setResult(ExecutionResult result) { this.result = result.toString(); } /** *

                    * The result of the remote access session. Can be any of the following: *

                    *
                      *
                    • *

                      * PENDING: A pending condition. *

                      *
                    • *
                    • *

                      * PASSED: A passing condition. *

                      *
                    • *
                    • *

                      * WARNED: A warning condition. *

                      *
                    • *
                    • *

                      * FAILED: A failed condition. *

                      *
                    • *
                    • *

                      * SKIPPED: A skipped condition. *

                      *
                    • *
                    • *

                      * ERRORED: An error condition. *

                      *
                    • *
                    • *

                      * STOPPED: A stopped condition. *

                      *
                    • *
                    * * @param result * The result of the remote access session. Can be any of the * following:

                    *
                      *
                    • *

                      * PENDING: A pending condition. *

                      *
                    • *
                    • *

                      * PASSED: A passing condition. *

                      *
                    • *
                    • *

                      * WARNED: A warning condition. *

                      *
                    • *
                    • *

                      * FAILED: A failed condition. *

                      *
                    • *
                    • *

                      * SKIPPED: A skipped condition. *

                      *
                    • *
                    • *

                      * ERRORED: An error condition. *

                      *
                    • *
                    • *

                      * STOPPED: A stopped condition. *

                      *
                    • * @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; } /** *

                      * A message about the remote access session. *

                      * * @param message * A message about the remote access session. */ public void setMessage(String message) { this.message = message; } /** *

                      * A message about the remote access session. *

                      * * @return A message about the remote access session. */ public String getMessage() { return this.message; } /** *

                      * A message about the remote access session. *

                      * * @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; } /** *

                      * The date and time the remote access session was started. *

                      * * @param started * The date and time the remote access session was started. */ public void setStarted(java.util.Date started) { this.started = started; } /** *

                      * The date and time the remote access session was started. *

                      * * @return The date and time the remote access session was started. */ public java.util.Date getStarted() { return this.started; } /** *

                      * The date and time the remote access session was started. *

                      * * @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; } /** *

                      * The date and time the remote access session was stopped. *

                      * * @param stopped * The date and time the remote access session was stopped. */ public void setStopped(java.util.Date stopped) { this.stopped = stopped; } /** *

                      * The date and time the remote access session was stopped. *

                      * * @return The date and time the remote access session was stopped. */ public java.util.Date getStopped() { return this.stopped; } /** *

                      * The date and time the remote access session was stopped. *

                      * * @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; } /** * @param device */ public void setDevice(Device device) { this.device = device; } /** * @return */ public Device getDevice() { return this.device; } /** * @param device * @return Returns a reference to this object so that method calls can be * chained together. */ public RemoteAccessSession withDevice(Device device) { setDevice(device); return this; } /** *

                      * The billing method of the remote access session. Possible values include * METERED or UNMETERED. For more information * about metered devices, see AWS Device Farm terminology." *

                      * * @param billingMethod * The billing method of the remote access session. Possible values * include METERED or UNMETERED. For more * information about metered devices, see AWS Device Farm terminology." * @see BillingMethod */ public void setBillingMethod(String billingMethod) { this.billingMethod = billingMethod; } /** *

                      * The billing method of the remote access session. Possible values include * METERED or UNMETERED. For more information * about metered devices, see AWS Device Farm terminology." *

                      * * @return The billing method of the remote access session. Possible values * include METERED or UNMETERED. For more * information about metered devices, see AWS Device Farm terminology." * @see BillingMethod */ public String getBillingMethod() { return this.billingMethod; } /** *

                      * The billing method of the remote access session. Possible values include * METERED or UNMETERED. For more information * about metered devices, see AWS Device Farm terminology." *

                      * * @param billingMethod * The billing method of the remote access session. Possible values * include METERED or UNMETERED. For more * information about metered devices, see AWS Device Farm terminology." * @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; } /** *

                      * The billing method of the remote access session. Possible values include * METERED or UNMETERED. For more information * about metered devices, see AWS Device Farm terminology." *

                      * * @param billingMethod * The billing method of the remote access session. Possible values * include METERED or UNMETERED. For more * information about metered devices, see AWS Device Farm terminology." * @see BillingMethod */ public void setBillingMethod(BillingMethod billingMethod) { this.billingMethod = billingMethod.toString(); } /** *

                      * The billing method of the remote access session. Possible values include * METERED or UNMETERED. For more information * about metered devices, see AWS Device Farm terminology." *

                      * * @param billingMethod * The billing method of the remote access session. Possible values * include METERED or UNMETERED. For more * information about metered devices, see AWS Device Farm terminology." * @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; } /** * @param deviceMinutes */ public void setDeviceMinutes(DeviceMinutes deviceMinutes) { this.deviceMinutes = deviceMinutes; } /** * @return */ public DeviceMinutes getDeviceMinutes() { return this.deviceMinutes; } /** * @param deviceMinutes * @return Returns a reference to this object so that method calls can be * chained together. */ public RemoteAccessSession withDeviceMinutes(DeviceMinutes deviceMinutes) { setDeviceMinutes(deviceMinutes); return this; } /** *

                      * The endpoint for the remote access sesssion. *

                      * * @param endpoint * The endpoint for the remote access sesssion. */ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } /** *

                      * The endpoint for the remote access sesssion. *

                      * * @return The endpoint for the remote access sesssion. */ public String getEndpoint() { return this.endpoint; } /** *

                      * The endpoint for the remote access sesssion. *

                      * * @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: " + getArn() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getCreated() != null) sb.append("Created: " + getCreated() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getResult() != null) sb.append("Result: " + getResult() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getStarted() != null) sb.append("Started: " + getStarted() + ","); if (getStopped() != null) sb.append("Stopped: " + getStopped() + ","); if (getDevice() != null) sb.append("Device: " + getDevice() + ","); if (getBillingMethod() != null) sb.append("BillingMethod: " + getBillingMethod() + ","); if (getDeviceMinutes() != null) sb.append("DeviceMinutes: " + getDeviceMinutes() + ","); if (getEndpoint() != null) sb.append("Endpoint: " + 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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy