Class DescribeDeviceResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.worklink.model.WorkLinkResponse
-
- software.amazon.awssdk.services.worklink.model.DescribeDeviceResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeDeviceResponse.Builder,DescribeDeviceResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeDeviceResponse extends WorkLinkResponse implements ToCopyableBuilder<DescribeDeviceResponse.Builder,DescribeDeviceResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeDeviceResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescribeDeviceResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantfirstAccessedTime()The date that the device first signed in to Amazon WorkLink.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastAccessedTime()The date that the device last accessed Amazon WorkLink.Stringmanufacturer()The manufacturer of the device.Stringmodel()The model of the device.StringoperatingSystem()The operating system of the device.StringoperatingSystemVersion()The operating system version of the device.StringpatchLevel()The operating system patch level of the device.List<SdkField<?>>sdkFields()static Class<? extends DescribeDeviceResponse.Builder>serializableBuilderClass()DeviceStatusstatus()The current state of the device.StringstatusAsString()The current state of the device.DescribeDeviceResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringusername()The user name associated with the device.-
Methods inherited from class software.amazon.awssdk.services.worklink.model.WorkLinkResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
status
public final DeviceStatus status()
The current state of the device.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current state of the device.
- See Also:
DeviceStatus
-
statusAsString
public final String statusAsString()
The current state of the device.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current state of the device.
- See Also:
DeviceStatus
-
model
public final String model()
The model of the device.
- Returns:
- The model of the device.
-
manufacturer
public final String manufacturer()
The manufacturer of the device.
- Returns:
- The manufacturer of the device.
-
operatingSystem
public final String operatingSystem()
The operating system of the device.
- Returns:
- The operating system of the device.
-
operatingSystemVersion
public final String operatingSystemVersion()
The operating system version of the device.
- Returns:
- The operating system version of the device.
-
patchLevel
public final String patchLevel()
The operating system patch level of the device.
- Returns:
- The operating system patch level of the device.
-
firstAccessedTime
public final Instant firstAccessedTime()
The date that the device first signed in to Amazon WorkLink.
- Returns:
- The date that the device first signed in to Amazon WorkLink.
-
lastAccessedTime
public final Instant lastAccessedTime()
The date that the device last accessed Amazon WorkLink.
- Returns:
- The date that the device last accessed Amazon WorkLink.
-
username
public final String username()
The user name associated with the device.
- Returns:
- The user name associated with the device.
-
toBuilder
public DescribeDeviceResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeDeviceResponse.Builder,DescribeDeviceResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeDeviceResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeDeviceResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-