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

com.amazonaws.services.devicefarm.model.Upload 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;

/**
 * 

* An app or a set of one or more tests to upload or that have been uploaded. *

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

* The upload's ARN. *

*/ private String arn; /** *

* The upload's file name. *

*/ private String name; /** *

* When the upload was created. *

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

* The upload's type. *

*

* Must be one of the following values: *

*
    *
  • *

    * ANDROID_APP: An Android upload. *

    *
  • *
  • *

    * IOS_APP: An iOS upload. *

    *
  • *
  • *

    * WEB_APP: A web appliction upload. *

    *
  • *
  • *

    * EXTERNAL_DATA: An external data upload. *

    *
  • *
  • *

    * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. *

    *
  • *
  • *

    * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

    *
  • *
  • *

    * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

    *
  • *
  • *

    * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

    *
  • *
  • *

    * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

    *
  • *
  • *

    * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

    *
  • *
  • *

    * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

    *
  • *
  • *

    * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

    *
  • *
  • *

    * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

    *
  • *
  • *

    * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

    *
  • *
  • *

    * XCTEST_TEST_PACKAGE: An XCode test package upload. *

    *
  • *
  • *

    * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

    *
  • *
*/ private String type; /** *

* The upload's status. *

*

* Must be one of the following values: *

*
    *
  • *

    * FAILED: A failed status. *

    *
  • *
  • *

    * INITIALIZED: An initialized status. *

    *
  • *
  • *

    * PROCESSING: A processing status. *

    *
  • *
  • *

    * SUCCEEDED: A succeeded status. *

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

* The pre-signed Amazon S3 URL that was used to store a file through a * corresponding PUT request. *

*/ private String url; /** *

* The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in the AWS * Device Farm console after the associated app is uploaded. *

*/ private String metadata; /** *

* The upload's content type (for example, "application/octet-stream"). *

*/ private String contentType; /** *

* A message about the upload's result. *

*/ private String message; /** *

* The upload's ARN. *

* * @param arn * The upload's ARN. */ public void setArn(String arn) { this.arn = arn; } /** *

* The upload's ARN. *

* * @return The upload's ARN. */ public String getArn() { return this.arn; } /** *

* The upload's ARN. *

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

* The upload's file name. *

* * @param name * The upload's file name. */ public void setName(String name) { this.name = name; } /** *

* The upload's file name. *

* * @return The upload's file name. */ public String getName() { return this.name; } /** *

* The upload's file name. *

* * @param name * The upload's file name. * @return Returns a reference to this object so that method calls can be * chained together. */ public Upload withName(String name) { setName(name); return this; } /** *

* When the upload was created. *

* * @param created * When the upload was created. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* When the upload was created. *

* * @return When the upload was created. */ public java.util.Date getCreated() { return this.created; } /** *

* When the upload was created. *

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

* The upload's type. *

*

* Must be one of the following values: *

*
    *
  • *

    * ANDROID_APP: An Android upload. *

    *
  • *
  • *

    * IOS_APP: An iOS upload. *

    *
  • *
  • *

    * WEB_APP: A web appliction upload. *

    *
  • *
  • *

    * EXTERNAL_DATA: An external data upload. *

    *
  • *
  • *

    * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. *

    *
  • *
  • *

    * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

    *
  • *
  • *

    * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

    *
  • *
  • *

    * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

    *
  • *
  • *

    * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

    *
  • *
  • *

    * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

    *
  • *
  • *

    * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

    *
  • *
  • *

    * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

    *
  • *
  • *

    * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

    *
  • *
  • *

    * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

    *
  • *
  • *

    * XCTEST_TEST_PACKAGE: An XCode test package upload. *

    *
  • *
  • *

    * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

    *
  • *
* * @param type * The upload's type.

*

* Must be one of the following values: *

*
    *
  • *

    * ANDROID_APP: An Android upload. *

    *
  • *
  • *

    * IOS_APP: An iOS upload. *

    *
  • *
  • *

    * WEB_APP: A web appliction upload. *

    *
  • *
  • *

    * EXTERNAL_DATA: An external data upload. *

    *
  • *
  • *

    * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

    *
  • *
  • *

    * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

    *
  • *
  • *

    * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

    *
  • *
  • *

    * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test * package upload. *

    *
  • *
  • *

    * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

    *
  • *
  • *

    * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package * upload. *

    *
  • *
  • *

    * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

    *
  • *
  • *

    * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

    *
  • *
  • *

    * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

    *
  • *
  • *

    * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

    *
  • *
  • *

    * XCTEST_TEST_PACKAGE: An XCode test package upload. *

    *
  • *
  • *

    * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

    *
  • * @see UploadType */ public void setType(String type) { this.type = type; } /** *

    * The upload's type. *

    *

    * Must be one of the following values: *

    *
      *
    • *

      * ANDROID_APP: An Android upload. *

      *
    • *
    • *

      * IOS_APP: An iOS upload. *

      *
    • *
    • *

      * WEB_APP: A web appliction upload. *

      *
    • *
    • *

      * EXTERNAL_DATA: An external data upload. *

      *
    • *
    • *

      * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. *

      *
    • *
    • *

      * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

      *
    • *
    • *

      * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

      *
    • *
    • *

      * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

      *
    • *
    • *

      * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

      *
    • *
    • *

      * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

      *
    • *
    • *

      * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

      *
    • *
    • *

      * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

      *
    • *
    • *

      * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

      *
    • *
    • *

      * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

      *
    • *
    • *

      * XCTEST_TEST_PACKAGE: An XCode test package upload. *

      *
    • *
    • *

      * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

      *
    • *
    * * @return The upload's type.

    *

    * Must be one of the following values: *

    *
      *
    • *

      * ANDROID_APP: An Android upload. *

      *
    • *
    • *

      * IOS_APP: An iOS upload. *

      *
    • *
    • *

      * WEB_APP: A web appliction upload. *

      *
    • *
    • *

      * EXTERNAL_DATA: An external data upload. *

      *
    • *
    • *

      * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

      *
    • *
    • *

      * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

      *
    • *
    • *

      * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

      *
    • *
    • *

      * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test * package upload. *

      *
    • *
    • *

      * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

      *
    • *
    • *

      * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package * upload. *

      *
    • *
    • *

      * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

      *
    • *
    • *

      * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

      *
    • *
    • *

      * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

      *
    • *
    • *

      * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

      *
    • *
    • *

      * XCTEST_TEST_PACKAGE: An XCode test package upload. *

      *
    • *
    • *

      * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

      *
    • * @see UploadType */ public String getType() { return this.type; } /** *

      * The upload's type. *

      *

      * Must be one of the following values: *

      *
        *
      • *

        * ANDROID_APP: An Android upload. *

        *
      • *
      • *

        * IOS_APP: An iOS upload. *

        *
      • *
      • *

        * WEB_APP: A web appliction upload. *

        *
      • *
      • *

        * EXTERNAL_DATA: An external data upload. *

        *
      • *
      • *

        * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. *

        *
      • *
      • *

        * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

        *
      • *
      • *

        * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

        *
      • *
      • *

        * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

        *
      • *
      • *

        * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

        *
      • *
      • *

        * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

        *
      • *
      • *

        * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

        *
      • *
      • *

        * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

        *
      • *
      • *

        * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

        *
      • *
      • *

        * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

        *
      • *
      • *

        * XCTEST_TEST_PACKAGE: An XCode test package upload. *

        *
      • *
      • *

        * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

        *
      • *
      * * @param type * The upload's type.

      *

      * Must be one of the following values: *

      *
        *
      • *

        * ANDROID_APP: An Android upload. *

        *
      • *
      • *

        * IOS_APP: An iOS upload. *

        *
      • *
      • *

        * WEB_APP: A web appliction upload. *

        *
      • *
      • *

        * EXTERNAL_DATA: An external data upload. *

        *
      • *
      • *

        * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

        *
      • *
      • *

        * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

        *
      • *
      • *

        * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

        *
      • *
      • *

        * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test * package upload. *

        *
      • *
      • *

        * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

        *
      • *
      • *

        * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package * upload. *

        *
      • *
      • *

        * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

        *
      • *
      • *

        * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

        *
      • *
      • *

        * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

        *
      • *
      • *

        * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

        *
      • *
      • *

        * XCTEST_TEST_PACKAGE: An XCode test package upload. *

        *
      • *
      • *

        * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

        *
      • * @return Returns a reference to this object so that method calls can be * chained together. * @see UploadType */ public Upload withType(String type) { setType(type); return this; } /** *

        * The upload's type. *

        *

        * Must be one of the following values: *

        *
          *
        • *

          * ANDROID_APP: An Android upload. *

          *
        • *
        • *

          * IOS_APP: An iOS upload. *

          *
        • *
        • *

          * WEB_APP: A web appliction upload. *

          *
        • *
        • *

          * EXTERNAL_DATA: An external data upload. *

          *
        • *
        • *

          * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. *

          *
        • *
        • *

          * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

          *
        • *
        • *

          * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

          *
        • *
        • *

          * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

          *
        • *
        • *

          * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

          *
        • *
        • *

          * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

          *
        • *
        • *

          * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

          *
        • *
        • *

          * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

          *
        • *
        • *

          * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

          *
        • *
        • *

          * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

          *
        • *
        • *

          * XCTEST_TEST_PACKAGE: An XCode test package upload. *

          *
        • *
        • *

          * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

          *
        • *
        * * @param type * The upload's type.

        *

        * Must be one of the following values: *

        *
          *
        • *

          * ANDROID_APP: An Android upload. *

          *
        • *
        • *

          * IOS_APP: An iOS upload. *

          *
        • *
        • *

          * WEB_APP: A web appliction upload. *

          *
        • *
        • *

          * EXTERNAL_DATA: An external data upload. *

          *
        • *
        • *

          * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

          *
        • *
        • *

          * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

          *
        • *
        • *

          * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

          *
        • *
        • *

          * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test * package upload. *

          *
        • *
        • *

          * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

          *
        • *
        • *

          * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package * upload. *

          *
        • *
        • *

          * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

          *
        • *
        • *

          * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

          *
        • *
        • *

          * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

          *
        • *
        • *

          * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

          *
        • *
        • *

          * XCTEST_TEST_PACKAGE: An XCode test package upload. *

          *
        • *
        • *

          * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

          *
        • * @see UploadType */ public void setType(UploadType type) { this.type = type.toString(); } /** *

          * The upload's type. *

          *

          * Must be one of the following values: *

          *
            *
          • *

            * ANDROID_APP: An Android upload. *

            *
          • *
          • *

            * IOS_APP: An iOS upload. *

            *
          • *
          • *

            * WEB_APP: A web appliction upload. *

            *
          • *
          • *

            * EXTERNAL_DATA: An external data upload. *

            *
          • *
          • *

            * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. *

            *
          • *
          • *

            * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

            *
          • *
          • *

            * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

            *
          • *
          • *

            * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

            *
          • *
          • *

            * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package * upload. *

            *
          • *
          • *

            * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

            *
          • *
          • *

            * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

            *
          • *
          • *

            * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

            *
          • *
          • *

            * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

            *
          • *
          • *

            * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

            *
          • *
          • *

            * XCTEST_TEST_PACKAGE: An XCode test package upload. *

            *
          • *
          • *

            * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

            *
          • *
          * * @param type * The upload's type.

          *

          * Must be one of the following values: *

          *
            *
          • *

            * ANDROID_APP: An Android upload. *

            *
          • *
          • *

            * IOS_APP: An iOS upload. *

            *
          • *
          • *

            * WEB_APP: A web appliction upload. *

            *
          • *
          • *

            * EXTERNAL_DATA: An external data upload. *

            *
          • *
          • *

            * APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package * upload. *

            *
          • *
          • *

            * APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

            *
          • *
          • *

            * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. *

            *
          • *
          • *

            * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test * package upload. *

            *
          • *
          • *

            * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test * package upload. *

            *
          • *
          • *

            * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package * upload. *

            *
          • *
          • *

            * CALABASH_TEST_PACKAGE: A Calabash test package upload. *

            *
          • *
          • *

            * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. *

            *
          • *
          • *

            * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. *

            *
          • *
          • *

            * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. *

            *
          • *
          • *

            * XCTEST_TEST_PACKAGE: An XCode test package upload. *

            *
          • *
          • *

            * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. *

            *
          • * @return Returns a reference to this object so that method calls can be * chained together. * @see UploadType */ public Upload withType(UploadType type) { setType(type); return this; } /** *

            * The upload's status. *

            *

            * Must be one of the following values: *

            *
              *
            • *

              * FAILED: A failed status. *

              *
            • *
            • *

              * INITIALIZED: An initialized status. *

              *
            • *
            • *

              * PROCESSING: A processing status. *

              *
            • *
            • *

              * SUCCEEDED: A succeeded status. *

              *
            • *
            * * @param status * The upload's status.

            *

            * Must be one of the following values: *

            *
              *
            • *

              * FAILED: A failed status. *

              *
            • *
            • *

              * INITIALIZED: An initialized status. *

              *
            • *
            • *

              * PROCESSING: A processing status. *

              *
            • *
            • *

              * SUCCEEDED: A succeeded status. *

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

              * The upload's status. *

              *

              * Must be one of the following values: *

              *
                *
              • *

                * FAILED: A failed status. *

                *
              • *
              • *

                * INITIALIZED: An initialized status. *

                *
              • *
              • *

                * PROCESSING: A processing status. *

                *
              • *
              • *

                * SUCCEEDED: A succeeded status. *

                *
              • *
              * * @return The upload's status.

              *

              * Must be one of the following values: *

              *
                *
              • *

                * FAILED: A failed status. *

                *
              • *
              • *

                * INITIALIZED: An initialized status. *

                *
              • *
              • *

                * PROCESSING: A processing status. *

                *
              • *
              • *

                * SUCCEEDED: A succeeded status. *

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

                * The upload's status. *

                *

                * Must be one of the following values: *

                *
                  *
                • *

                  * FAILED: A failed status. *

                  *
                • *
                • *

                  * INITIALIZED: An initialized status. *

                  *
                • *
                • *

                  * PROCESSING: A processing status. *

                  *
                • *
                • *

                  * SUCCEEDED: A succeeded status. *

                  *
                • *
                * * @param status * The upload's status.

                *

                * Must be one of the following values: *

                *
                  *
                • *

                  * FAILED: A failed status. *

                  *
                • *
                • *

                  * INITIALIZED: An initialized status. *

                  *
                • *
                • *

                  * PROCESSING: A processing status. *

                  *
                • *
                • *

                  * SUCCEEDED: A succeeded status. *

                  *
                • * @return Returns a reference to this object so that method calls can be * chained together. * @see UploadStatus */ public Upload withStatus(String status) { setStatus(status); return this; } /** *

                  * The upload's status. *

                  *

                  * Must be one of the following values: *

                  *
                    *
                  • *

                    * FAILED: A failed status. *

                    *
                  • *
                  • *

                    * INITIALIZED: An initialized status. *

                    *
                  • *
                  • *

                    * PROCESSING: A processing status. *

                    *
                  • *
                  • *

                    * SUCCEEDED: A succeeded status. *

                    *
                  • *
                  * * @param status * The upload's status.

                  *

                  * Must be one of the following values: *

                  *
                    *
                  • *

                    * FAILED: A failed status. *

                    *
                  • *
                  • *

                    * INITIALIZED: An initialized status. *

                    *
                  • *
                  • *

                    * PROCESSING: A processing status. *

                    *
                  • *
                  • *

                    * SUCCEEDED: A succeeded status. *

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

                    * The upload's status. *

                    *

                    * Must be one of the following values: *

                    *
                      *
                    • *

                      * FAILED: A failed status. *

                      *
                    • *
                    • *

                      * INITIALIZED: An initialized status. *

                      *
                    • *
                    • *

                      * PROCESSING: A processing status. *

                      *
                    • *
                    • *

                      * SUCCEEDED: A succeeded status. *

                      *
                    • *
                    * * @param status * The upload's status.

                    *

                    * Must be one of the following values: *

                    *
                      *
                    • *

                      * FAILED: A failed status. *

                      *
                    • *
                    • *

                      * INITIALIZED: An initialized status. *

                      *
                    • *
                    • *

                      * PROCESSING: A processing status. *

                      *
                    • *
                    • *

                      * SUCCEEDED: A succeeded status. *

                      *
                    • * @return Returns a reference to this object so that method calls can be * chained together. * @see UploadStatus */ public Upload withStatus(UploadStatus status) { setStatus(status); return this; } /** *

                      * The pre-signed Amazon S3 URL that was used to store a file through a * corresponding PUT request. *

                      * * @param url * The pre-signed Amazon S3 URL that was used to store a file through * a corresponding PUT request. */ public void setUrl(String url) { this.url = url; } /** *

                      * The pre-signed Amazon S3 URL that was used to store a file through a * corresponding PUT request. *

                      * * @return The pre-signed Amazon S3 URL that was used to store a file * through a corresponding PUT request. */ public String getUrl() { return this.url; } /** *

                      * The pre-signed Amazon S3 URL that was used to store a file through a * corresponding PUT request. *

                      * * @param url * The pre-signed Amazon S3 URL that was used to store a file through * a corresponding PUT request. * @return Returns a reference to this object so that method calls can be * chained together. */ public Upload withUrl(String url) { setUrl(url); return this; } /** *

                      * The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in the AWS * Device Farm console after the associated app is uploaded. *

                      * * @param metadata * The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in * the AWS Device Farm console after the associated app is uploaded. */ public void setMetadata(String metadata) { this.metadata = metadata; } /** *

                      * The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in the AWS * Device Farm console after the associated app is uploaded. *

                      * * @return The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in * the AWS Device Farm console after the associated app is uploaded. */ public String getMetadata() { return this.metadata; } /** *

                      * The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in the AWS * Device Farm console after the associated app is uploaded. *

                      * * @param metadata * The upload's metadata. For example, for Android, this contains * information that is parsed from the manifest and is displayed in * the AWS Device Farm console after the associated app is uploaded. * @return Returns a reference to this object so that method calls can be * chained together. */ public Upload withMetadata(String metadata) { setMetadata(metadata); return this; } /** *

                      * The upload's content type (for example, "application/octet-stream"). *

                      * * @param contentType * The upload's content type (for example, * "application/octet-stream"). */ public void setContentType(String contentType) { this.contentType = contentType; } /** *

                      * The upload's content type (for example, "application/octet-stream"). *

                      * * @return The upload's content type (for example, * "application/octet-stream"). */ public String getContentType() { return this.contentType; } /** *

                      * The upload's content type (for example, "application/octet-stream"). *

                      * * @param contentType * The upload's content type (for example, * "application/octet-stream"). * @return Returns a reference to this object so that method calls can be * chained together. */ public Upload withContentType(String contentType) { setContentType(contentType); return this; } /** *

                      * A message about the upload's result. *

                      * * @param message * A message about the upload's result. */ public void setMessage(String message) { this.message = message; } /** *

                      * A message about the upload's result. *

                      * * @return A message about the upload's result. */ public String getMessage() { return this.message; } /** *

                      * A message about the upload's result. *

                      * * @param message * A message about the upload's result. * @return Returns a reference to this object so that method calls can be * chained together. */ public Upload withMessage(String message) { setMessage(message); 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 (getType() != null) sb.append("Type: " + getType() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getUrl() != null) sb.append("Url: " + getUrl() + ","); if (getMetadata() != null) sb.append("Metadata: " + getMetadata() + ","); if (getContentType() != null) sb.append("ContentType: " + getContentType() + ","); if (getMessage() != null) sb.append("Message: " + getMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Upload == false) return false; Upload other = (Upload) 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.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == 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.getUrl() == null ^ this.getUrl() == null) return false; if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getContentType() == null ^ this.getContentType() == null) return false; if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == 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 + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); return hashCode; } @Override public Upload clone() { try { return (Upload) 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