Class Artifact

java.lang.Object
com.amazonaws.services.devicefarm.model.Artifact
All Implemented Interfaces:
Serializable, Cloneable

public class Artifact extends Object implements Serializable, Cloneable

Represents the output of a test. Examples of artifacts include logs and screenshots.

See Also:
  • Constructor Details

    • Artifact

      public Artifact()
  • Method Details

    • setArn

      public void setArn(String arn)

      The artifact's ARN.

      Parameters:
      arn - The artifact's ARN.
    • getArn

      public String getArn()

      The artifact's ARN.

      Returns:
      The artifact's ARN.
    • withArn

      public Artifact withArn(String arn)

      The artifact's ARN.

      Parameters:
      arn - The artifact's ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setName

      public void setName(String name)

      The artifact's name.

      Parameters:
      name - The artifact's name.
    • getName

      public String getName()

      The artifact's name.

      Returns:
      The artifact's name.
    • withName

      public Artifact withName(String name)

      The artifact's name.

      Parameters:
      name - The artifact's name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setType

      public void setType(String type)

      The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Parameters:
      type - The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      See Also:
    • getType

      public String getType()

      The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Returns:
      The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      See Also:
    • withType

      public Artifact withType(String type)

      The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Parameters:
      type - The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setType

      public void setType(ArtifactType type)

      The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Parameters:
      type - The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      See Also:
    • withType

      public Artifact withType(ArtifactType type)

      The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Parameters:
      type - The artifact's type.

      Allowed values include the following:

      • UNKNOWN: An unknown type.

      • SCREENSHOT: The screenshot type.

      • DEVICE_LOG: The device log type.

      • MESSAGE_LOG: The message log type.

      • RESULT_LOG: The result log type.

      • SERVICE_LOG: The service log type.

      • WEBKIT_LOG: The web kit log type.

      • INSTRUMENTATION_OUTPUT: The instrumentation type.

      • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

      • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

      • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

      • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

      • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

      • AUTOMATION_OUTPUT: The automation output type.

      • APPIUM_SERVER_OUTPUT: The Appium server output type.

      • APPIUM_JAVA_OUTPUT: The Appium Java output type.

      • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

      • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

      • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

      • EXPLORER_EVENT_LOG: The Explorer event log output type.

      • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

      • APPLICATION_CRASH_REPORT: The application crash report output type.

      • XCTEST_LOG: The XCode test output type.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setExtension

      public void setExtension(String extension)

      The artifact's file extension.

      Parameters:
      extension - The artifact's file extension.
    • getExtension

      public String getExtension()

      The artifact's file extension.

      Returns:
      The artifact's file extension.
    • withExtension

      public Artifact withExtension(String extension)

      The artifact's file extension.

      Parameters:
      extension - The artifact's file extension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUrl

      public void setUrl(String url)

      The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.

      Parameters:
      url - The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
    • getUrl

      public String getUrl()

      The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.

      Returns:
      The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
    • withUrl

      public Artifact withUrl(String url)

      The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.

      Parameters:
      url - The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Artifact clone()
      Overrides:
      clone in class Object