Class Artifact
- java.lang.Object
-
- software.amazon.awssdk.services.devicefarm.model.Artifact
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Artifact.Builder,Artifact>
@Generated("software.amazon.awssdk:codegen") public final class Artifact extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Artifact.Builder,Artifact>
Represents the output of a test. Examples of artifacts include logs and screenshots.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceArtifact.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The artifact's ARN.static Artifact.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringextension()The artifact's file extension.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The artifact's name.List<SdkField<?>>sdkFields()static Class<? extends Artifact.Builder>serializableBuilderClass()Artifact.BuildertoBuilder()StringtoString()Returns a string representation of this object.ArtifactTypetype()The artifact's type.StringtypeAsString()The artifact's type.Stringurl()The presigned Amazon S3 URL that can be used with a GET request to download the artifact's file.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public final String arn()
The artifact's ARN.
- Returns:
- The artifact's ARN.
-
name
public final String name()
The artifact's name.
- Returns:
- The artifact's name.
-
type
public final ArtifactType type()
The artifact's type.
Allowed values include the following:
-
UNKNOWN
-
SCREENSHOT
-
DEVICE_LOG
-
MESSAGE_LOG
-
VIDEO_LOG
-
RESULT_LOG
-
SERVICE_LOG
-
WEBKIT_LOG
-
INSTRUMENTATION_OUTPUT
-
EXERCISER_MONKEY_OUTPUT: the artifact (log) generated by an Android fuzz test.
-
APPIUM_SERVER_OUTPUT
-
APPIUM_JAVA_OUTPUT
-
APPIUM_JAVA_XML_OUTPUT
-
APPIUM_PYTHON_OUTPUT
-
APPIUM_PYTHON_XML_OUTPUT
-
APPLICATION_CRASH_REPORT
-
XCTEST_LOG
-
VIDEO
-
CUSTOMER_ARTIFACT
-
CUSTOMER_ARTIFACT_LOG
-
TESTSPEC_OUTPUT
If the service returns an enum value that is not available in the current SDK version,
typewill returnArtifactType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The artifact's type.
Allowed values include the following:
-
UNKNOWN
-
SCREENSHOT
-
DEVICE_LOG
-
MESSAGE_LOG
-
VIDEO_LOG
-
RESULT_LOG
-
SERVICE_LOG
-
WEBKIT_LOG
-
INSTRUMENTATION_OUTPUT
-
EXERCISER_MONKEY_OUTPUT: the artifact (log) generated by an Android fuzz test.
-
APPIUM_SERVER_OUTPUT
-
APPIUM_JAVA_OUTPUT
-
APPIUM_JAVA_XML_OUTPUT
-
APPIUM_PYTHON_OUTPUT
-
APPIUM_PYTHON_XML_OUTPUT
-
APPLICATION_CRASH_REPORT
-
XCTEST_LOG
-
VIDEO
-
CUSTOMER_ARTIFACT
-
CUSTOMER_ARTIFACT_LOG
-
TESTSPEC_OUTPUT
-
- See Also:
ArtifactType
-
-
typeAsString
public final String typeAsString()
The artifact's type.
Allowed values include the following:
-
UNKNOWN
-
SCREENSHOT
-
DEVICE_LOG
-
MESSAGE_LOG
-
VIDEO_LOG
-
RESULT_LOG
-
SERVICE_LOG
-
WEBKIT_LOG
-
INSTRUMENTATION_OUTPUT
-
EXERCISER_MONKEY_OUTPUT: the artifact (log) generated by an Android fuzz test.
-
APPIUM_SERVER_OUTPUT
-
APPIUM_JAVA_OUTPUT
-
APPIUM_JAVA_XML_OUTPUT
-
APPIUM_PYTHON_OUTPUT
-
APPIUM_PYTHON_XML_OUTPUT
-
APPLICATION_CRASH_REPORT
-
XCTEST_LOG
-
VIDEO
-
CUSTOMER_ARTIFACT
-
CUSTOMER_ARTIFACT_LOG
-
TESTSPEC_OUTPUT
If the service returns an enum value that is not available in the current SDK version,
typewill returnArtifactType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The artifact's type.
Allowed values include the following:
-
UNKNOWN
-
SCREENSHOT
-
DEVICE_LOG
-
MESSAGE_LOG
-
VIDEO_LOG
-
RESULT_LOG
-
SERVICE_LOG
-
WEBKIT_LOG
-
INSTRUMENTATION_OUTPUT
-
EXERCISER_MONKEY_OUTPUT: the artifact (log) generated by an Android fuzz test.
-
APPIUM_SERVER_OUTPUT
-
APPIUM_JAVA_OUTPUT
-
APPIUM_JAVA_XML_OUTPUT
-
APPIUM_PYTHON_OUTPUT
-
APPIUM_PYTHON_XML_OUTPUT
-
APPLICATION_CRASH_REPORT
-
XCTEST_LOG
-
VIDEO
-
CUSTOMER_ARTIFACT
-
CUSTOMER_ARTIFACT_LOG
-
TESTSPEC_OUTPUT
-
- See Also:
ArtifactType
-
-
extension
public final String extension()
The artifact's file extension.
- Returns:
- The artifact's file extension.
-
url
public final String url()
The presigned Amazon S3 URL that can be used with a GET request to download the artifact's file.
- Returns:
- The presigned Amazon S3 URL that can be used with a GET request to download the artifact's file.
-
toBuilder
public Artifact.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Artifact.Builder,Artifact>
-
builder
public static Artifact.Builder builder()
-
serializableBuilderClass
public static Class<? extends Artifact.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-