Partager via


DeviceInsightInner Class

  • java.lang.Object
    • com.azure.resourcemanager.sphere.fluent.models.DeviceInsightInner

Implements

public final class DeviceInsightInner
implements JsonSerializable<DeviceInsightInner>

Device insight report.

Constructor Summary

Constructor Description
DeviceInsightInner()

Creates an instance of DeviceInsightInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Event description.

String deviceId()

Get the deviceId property: Device ID.

OffsetDateTime endTimestampUtc()

Get the endTimestampUtc property: Event end timestamp.

String eventCategory()

Get the eventCategory property: Event category.

String eventClass()

Get the eventClass property: Event class.

int eventCount()

Get the eventCount property: Event count.

String eventType()

Get the eventType property: Event type.

static DeviceInsightInner fromJson(JsonReader jsonReader)

Reads an instance of DeviceInsightInner from the JsonReader.

OffsetDateTime startTimestampUtc()

Get the startTimestampUtc property: Event start timestamp.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DeviceInsightInner withDescription(String description)

Set the description property: Event description.

DeviceInsightInner withDeviceId(String deviceId)

Set the deviceId property: Device ID.

DeviceInsightInner withEndTimestampUtc(OffsetDateTime endTimestampUtc)

Set the endTimestampUtc property: Event end timestamp.

DeviceInsightInner withEventCategory(String eventCategory)

Set the eventCategory property: Event category.

DeviceInsightInner withEventClass(String eventClass)

Set the eventClass property: Event class.

DeviceInsightInner withEventCount(int eventCount)

Set the eventCount property: Event count.

DeviceInsightInner withEventType(String eventType)

Set the eventType property: Event type.

DeviceInsightInner withStartTimestampUtc(OffsetDateTime startTimestampUtc)

Set the startTimestampUtc property: Event start timestamp.

Methods inherited from java.lang.Object

Constructor Details

DeviceInsightInner

public DeviceInsightInner()

Creates an instance of DeviceInsightInner class.

Method Details

description

public String description()

Get the description property: Event description.

Returns:

the description value.

deviceId

public String deviceId()

Get the deviceId property: Device ID.

Returns:

the deviceId value.

endTimestampUtc

public OffsetDateTime endTimestampUtc()

Get the endTimestampUtc property: Event end timestamp.

Returns:

the endTimestampUtc value.

eventCategory

public String eventCategory()

Get the eventCategory property: Event category.

Returns:

the eventCategory value.

eventClass

public String eventClass()

Get the eventClass property: Event class.

Returns:

the eventClass value.

eventCount

public int eventCount()

Get the eventCount property: Event count.

Returns:

the eventCount value.

eventType

public String eventType()

Get the eventType property: Event type.

Returns:

the eventType value.

fromJson

public static DeviceInsightInner fromJson(JsonReader jsonReader)

Reads an instance of DeviceInsightInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeviceInsightInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

startTimestampUtc

public OffsetDateTime startTimestampUtc()

Get the startTimestampUtc property: Event start timestamp.

Returns:

the startTimestampUtc value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public DeviceInsightInner withDescription(String description)

Set the description property: Event description.

Parameters:

description - the description value to set.

Returns:

the DeviceInsightInner object itself.

withDeviceId

public DeviceInsightInner withDeviceId(String deviceId)

Set the deviceId property: Device ID.

Parameters:

deviceId - the deviceId value to set.

Returns:

the DeviceInsightInner object itself.

withEndTimestampUtc

public DeviceInsightInner withEndTimestampUtc(OffsetDateTime endTimestampUtc)

Set the endTimestampUtc property: Event end timestamp.

Parameters:

endTimestampUtc - the endTimestampUtc value to set.

Returns:

the DeviceInsightInner object itself.

withEventCategory

public DeviceInsightInner withEventCategory(String eventCategory)

Set the eventCategory property: Event category.

Parameters:

eventCategory - the eventCategory value to set.

Returns:

the DeviceInsightInner object itself.

withEventClass

public DeviceInsightInner withEventClass(String eventClass)

Set the eventClass property: Event class.

Parameters:

eventClass - the eventClass value to set.

Returns:

the DeviceInsightInner object itself.

withEventCount

public DeviceInsightInner withEventCount(int eventCount)

Set the eventCount property: Event count.

Parameters:

eventCount - the eventCount value to set.

Returns:

the DeviceInsightInner object itself.

withEventType

public DeviceInsightInner withEventType(String eventType)

Set the eventType property: Event type.

Parameters:

eventType - the eventType value to set.

Returns:

the DeviceInsightInner object itself.

withStartTimestampUtc

public DeviceInsightInner withStartTimestampUtc(OffsetDateTime startTimestampUtc)

Set the startTimestampUtc property: Event start timestamp.

Parameters:

startTimestampUtc - the startTimestampUtc value to set.

Returns:

the DeviceInsightInner object itself.

Applies to