Class Radios
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Radios
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Radios extends Object implements Serializable, Cloneable
Represents the set of radios and their states on a device. Examples of radios include Wi-Fi, GPS, Bluetooth, and NFC.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Radios()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Radiosclone()booleanequals(Object obj)BooleangetBluetooth()True if Bluetooth is enabled at the beginning of the test; otherwise, false.BooleangetGps()True if GPS is enabled at the beginning of the test; otherwise, false.BooleangetNfc()True if NFC is enabled at the beginning of the test; otherwise, false.BooleangetWifi()True if Wi-Fi is enabled at the beginning of the test; otherwise, false.inthashCode()BooleanisBluetooth()True if Bluetooth is enabled at the beginning of the test; otherwise, false.BooleanisGps()True if GPS is enabled at the beginning of the test; otherwise, false.BooleanisNfc()True if NFC is enabled at the beginning of the test; otherwise, false.BooleanisWifi()True if Wi-Fi is enabled at the beginning of the test; otherwise, false.voidsetBluetooth(Boolean bluetooth)True if Bluetooth is enabled at the beginning of the test; otherwise, false.voidsetGps(Boolean gps)True if GPS is enabled at the beginning of the test; otherwise, false.voidsetNfc(Boolean nfc)True if NFC is enabled at the beginning of the test; otherwise, false.voidsetWifi(Boolean wifi)True if Wi-Fi is enabled at the beginning of the test; otherwise, false.StringtoString()Returns a string representation of this object; useful for testing and debugging.RadioswithBluetooth(Boolean bluetooth)True if Bluetooth is enabled at the beginning of the test; otherwise, false.RadioswithGps(Boolean gps)True if GPS is enabled at the beginning of the test; otherwise, false.RadioswithNfc(Boolean nfc)True if NFC is enabled at the beginning of the test; otherwise, false.RadioswithWifi(Boolean wifi)True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
-
-
Method Detail
-
setWifi
public void setWifi(Boolean wifi)
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Parameters:
wifi- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
getWifi
public Boolean getWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
withWifi
public Radios withWifi(Boolean wifi)
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Parameters:
wifi- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isWifi
public Boolean isWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
setBluetooth
public void setBluetooth(Boolean bluetooth)
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Parameters:
bluetooth- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
getBluetooth
public Boolean getBluetooth()
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
withBluetooth
public Radios withBluetooth(Boolean bluetooth)
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Parameters:
bluetooth- True if Bluetooth is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isBluetooth
public Boolean isBluetooth()
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
setNfc
public void setNfc(Boolean nfc)
True if NFC is enabled at the beginning of the test; otherwise, false.
- Parameters:
nfc- True if NFC is enabled at the beginning of the test; otherwise, false.
-
getNfc
public Boolean getNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
withNfc
public Radios withNfc(Boolean nfc)
True if NFC is enabled at the beginning of the test; otherwise, false.
- Parameters:
nfc- True if NFC is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isNfc
public Boolean isNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
setGps
public void setGps(Boolean gps)
True if GPS is enabled at the beginning of the test; otherwise, false.
- Parameters:
gps- True if GPS is enabled at the beginning of the test; otherwise, false.
-
getGps
public Boolean getGps()
True if GPS is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
withGps
public Radios withGps(Boolean gps)
True if GPS is enabled at the beginning of the test; otherwise, false.
- Parameters:
gps- True if GPS is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isGps
public Boolean isGps()
True if GPS is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-