Class Device
- java.lang.Object
-
- software.amazon.awssdk.services.panorama.model.Device
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Device.Builder,Device>
@Generated("software.amazon.awssdk:codegen") public final class Device extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Device.Builder,Device>
A device.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDevice.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceBrandbrand()The device's maker.StringbrandAsString()The device's maker.static Device.Builderbuilder()InstantcreatedTime()When the device was created.StringcurrentSoftware()A device's current software.Stringdescription()A description for the device.DeviceAggregatedStatusdeviceAggregatedStatus()A device's aggregated status.StringdeviceAggregatedStatusAsString()A device's aggregated status.StringdeviceId()The device's ID.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.InstantlastUpdatedTime()When the device was updated.LatestDeviceJoblatestDeviceJob()A device's latest job.InstantleaseExpirationTime()The device's lease expiration time.Stringname()The device's name.DeviceStatusprovisioningStatus()The device's provisioning status.StringprovisioningStatusAsString()The device's provisioning status.List<SdkField<?>>sdkFields()static Class<? extends Device.Builder>serializableBuilderClass()Map<String,String>tags()The device's tags.Device.BuildertoBuilder()StringtoString()Returns a string representation of this object.DeviceTypetype()The device's type.StringtypeAsString()The device's type.-
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
-
brand
public final DeviceBrand brand()
The device's maker.
If the service returns an enum value that is not available in the current SDK version,
brandwill returnDeviceBrand.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombrandAsString().- Returns:
- The device's maker.
- See Also:
DeviceBrand
-
brandAsString
public final String brandAsString()
The device's maker.
If the service returns an enum value that is not available in the current SDK version,
brandwill returnDeviceBrand.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombrandAsString().- Returns:
- The device's maker.
- See Also:
DeviceBrand
-
createdTime
public final Instant createdTime()
When the device was created.
- Returns:
- When the device was created.
-
currentSoftware
public final String currentSoftware()
A device's current software.
- Returns:
- A device's current software.
-
description
public final String description()
A description for the device.
- Returns:
- A description for the device.
-
deviceAggregatedStatus
public final DeviceAggregatedStatus deviceAggregatedStatus()
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
If the service returns an enum value that is not available in the current SDK version,
deviceAggregatedStatuswill returnDeviceAggregatedStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdeviceAggregatedStatusAsString().- Returns:
- A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
- See Also:
DeviceAggregatedStatus
-
deviceAggregatedStatusAsString
public final String deviceAggregatedStatusAsString()
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
If the service returns an enum value that is not available in the current SDK version,
deviceAggregatedStatuswill returnDeviceAggregatedStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdeviceAggregatedStatusAsString().- Returns:
- A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
- See Also:
DeviceAggregatedStatus
-
deviceId
public final String deviceId()
The device's ID.
- Returns:
- The device's ID.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
When the device was updated.
- Returns:
- When the device was updated.
-
latestDeviceJob
public final LatestDeviceJob latestDeviceJob()
A device's latest job. Includes the target image version, and the update job status.
- Returns:
- A device's latest job. Includes the target image version, and the update job status.
-
leaseExpirationTime
public final Instant leaseExpirationTime()
The device's lease expiration time.
- Returns:
- The device's lease expiration time.
-
name
public final String name()
The device's name.
- Returns:
- The device's name.
-
provisioningStatus
public final DeviceStatus provisioningStatus()
The device's provisioning status.
If the service returns an enum value that is not available in the current SDK version,
provisioningStatuswill returnDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprovisioningStatusAsString().- Returns:
- The device's provisioning status.
- See Also:
DeviceStatus
-
provisioningStatusAsString
public final String provisioningStatusAsString()
The device's provisioning status.
If the service returns an enum value that is not available in the current SDK version,
provisioningStatuswill returnDeviceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprovisioningStatusAsString().- Returns:
- The device's provisioning status.
- See Also:
DeviceStatus
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final Map<String,String> tags()
The device's tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The device's tags.
-
type
public final DeviceType type()
The device's type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The device's type.
- See Also:
DeviceType
-
typeAsString
public final String typeAsString()
The device's type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The device's type.
- See Also:
DeviceType
-
toBuilder
public Device.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Device.Builder,Device>
-
builder
public static Device.Builder builder()
-
serializableBuilderClass
public static Class<? extends Device.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.
-
-