com.amazonaws.services.devicefarm.model.ListDevicesRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-devicefarm Show documentation
/*
* Copyright 2019-2024 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.AmazonWebServiceRequest;
/**
*
* Represents the result of a list devices request.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListDevicesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the project.
*
*/
private String arn;
/**
*
* An identifier that was returned from the previous call to this operation, which can be used to return the next
* set of items in the list.
*
*/
private String nextToken;
/**
*
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more values.
*
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE. Because
* remote debugging is no longer
* supported, this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the
* OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*
*/
private java.util.List filters;
/**
*
* The Amazon Resource Name (ARN) of the project.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the project.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the project.
*
*
* @return The Amazon Resource Name (ARN) of the project.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the project.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the project.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListDevicesRequest withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* An identifier that was returned from the previous call to this operation, which can be used to return the next
* set of items in the list.
*
*
* @param nextToken
* An identifier that was returned from the previous call to this operation, which can be used to return the
* next set of items in the list.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* An identifier that was returned from the previous call to this operation, which can be used to return the next
* set of items in the list.
*
*
* @return An identifier that was returned from the previous call to this operation, which can be used to return the
* next set of items in the list.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* An identifier that was returned from the previous call to this operation, which can be used to return the next
* set of items in the list.
*
*
* @param nextToken
* An identifier that was returned from the previous call to this operation, which can be used to return the
* next set of items in the list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListDevicesRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more values.
*
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE. Because
* remote debugging is no longer
* supported, this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the
* OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*
*
* @return Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more
* values.
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device
* filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY,
* or TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE.
* Because remote debugging is no longer supported,
* this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available
* for the OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY,
* or TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*/
public java.util.List getFilters() {
return filters;
}
/**
*
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more values.
*
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE. Because
* remote debugging is no longer
* supported, this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the
* OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*
*
* @param filters
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more
* values.
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device
* filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY,
* or TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE.
* Because remote debugging is no longer supported,
* this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available
* for the OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*/
public void setFilters(java.util.Collection filters) {
if (filters == null) {
this.filters = null;
return;
}
this.filters = new java.util.ArrayList(filters);
}
/**
*
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more values.
*
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE. Because
* remote debugging is no longer
* supported, this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the
* OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param filters
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more
* values.
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device
* filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY,
* or TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE.
* Because remote debugging is no longer supported,
* this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available
* for the OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListDevicesRequest withFilters(DeviceFilter... filters) {
if (this.filters == null) {
setFilters(new java.util.ArrayList(filters.length));
}
for (DeviceFilter ele : filters) {
this.filters.add(ele);
}
return this;
}
/**
*
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more values.
*
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE. Because
* remote debugging is no longer
* supported, this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the
* OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
*
*
* @param filters
* Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more
* values.
*
* -
*
* Attribute: The aspect of a device such as platform or model used as the selection criteria in a device
* filter.
*
*
* Allowed values include:
*
*
* -
*
* ARN: The Amazon Resource Name (ARN) of the device (for example,
* arn:aws:devicefarm:us-west-2::device:12345Example
).
*
*
* -
*
* PLATFORM: The device platform. Valid values are ANDROID or IOS.
*
*
* -
*
* OS_VERSION: The operating system version (for example, 10.3.2).
*
*
* -
*
* MODEL: The device model (for example, iPad 5th Gen).
*
*
* -
*
* AVAILABILITY: The current availability of the device. Valid values are AVAILABLE, HIGHLY_AVAILABLE, BUSY,
* or TEMPORARY_NOT_AVAILABLE.
*
*
* -
*
* FORM_FACTOR: The device form factor. Valid values are PHONE or TABLET.
*
*
* -
*
* MANUFACTURER: The device manufacturer (for example, Apple).
*
*
* -
*
* REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are TRUE or FALSE.
*
*
* -
*
* REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are TRUE or FALSE.
* Because remote debugging is no longer supported,
* this attribute is ignored.
*
*
* -
*
* INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.
*
*
* -
*
* INSTANCE_LABELS: The label of the device instance.
*
*
* -
*
* FLEET_TYPE: The fleet type. Valid values are PUBLIC or PRIVATE.
*
*
*
*
* -
*
* Operator: The filter operator.
*
*
* -
*
* The EQUALS operator is available for every attribute except INSTANCE_LABELS.
*
*
* -
*
* The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.
*
*
* -
*
* The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN
* attributes.
*
*
* -
*
* The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available
* for the OS_VERSION attribute.
*
*
*
*
* -
*
* Values: An array of one or more filter values.
*
*
* -
*
* The IN and NOT_IN operators take a values array that has one or more elements.
*
*
* -
*
* The other operators require an array with a single element.
*
*
* -
*
* In a request, the AVAILABILITY attribute takes the following values: AVAILABLE, HIGHLY_AVAILABLE, BUSY, or
* TEMPORARY_NOT_AVAILABLE.
*
*
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListDevicesRequest withFilters(java.util.Collection filters) {
setFilters(filters);
return this;
}
/**
* 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.
*
* @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: ").append(getArn()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getFilters() != null)
sb.append("Filters: ").append(getFilters());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListDevicesRequest == false)
return false;
ListDevicesRequest other = (ListDevicesRequest) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
if (other.getFilters() == null ^ this.getFilters() == null)
return false;
if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == 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 + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode());
return hashCode;
}
@Override
public ListDevicesRequest clone() {
return (ListDevicesRequest) super.clone();
}
}