/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.devicefarm.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a device. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Job implements Serializable, Cloneable, StructuredPojo { /** *

* The job's ARN. *

*/ private String arn; /** *

* The job's name. *

*/ private String name; /** *

* The job's type. *

*

* Allowed values include the following: *

* */ private String type; /** *

* When the job was created. *

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

* The job's status. *

*

* Allowed values include: *

* */ private String status; /** *

* The job's result. *

*

* Allowed values include: *

* */ private String result; /** *

* The job's start time. *

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

* The job's stop time. *

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

* The job's result counters. *

*/ private Counters counters; /** *

* A message about the job's result. *

*/ private String message; /** *

* The device (phone or tablet). *

*/ private Device device; /** *

* The ARN of the instance. *

*/ private String instanceArn; /** *

* Represents the total (metered or unmetered) minutes used by the job. *

*/ private DeviceMinutes deviceMinutes; /** *

* The endpoint for streaming device video. *

*/ private String videoEndpoint; /** *

* This value is set to true if video capture is enabled. Otherwise, it is set to false. *

*/ private Boolean videoCapture; /** *

* The job's ARN. *

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

* The job's ARN. *

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

* The job's ARN. *

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

* The job's name. *

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

* The job's name. *

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

* The job's name. *

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

* The job's type. *

*

* Allowed values include the following: *

* * * @param type * The job's type.

*

* Allowed values include the following: *

*