IotHubSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceupdate.models.IotHubSettings

Implements

public final class IotHubSettings
implements JsonSerializable<IotHubSettings>

Device Update account integration with IoT Hub settings.

Constructor Summary

Constructor Description
IotHubSettings()

Creates an instance of IotHubSettings class.

Method Summary

Modifier and Type Method and Description
static IotHubSettings fromJson(JsonReader jsonReader)

Reads an instance of IotHubSettings from the JsonReader.

String resourceId()

Get the resourceId property: IoTHub resource ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IotHubSettings withResourceId(String resourceId)

Set the resourceId property: IoTHub resource ID.

Methods inherited from java.lang.Object

Constructor Details

IotHubSettings

public IotHubSettings()

Creates an instance of IotHubSettings class.

Method Details

fromJson

public static IotHubSettings fromJson(JsonReader jsonReader)

Reads an instance of IotHubSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IotHubSettings 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.

resourceId

public String resourceId()

Get the resourceId property: IoTHub resource ID.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourceId

public IotHubSettings withResourceId(String resourceId)

Set the resourceId property: IoTHub resource ID.

Parameters:

resourceId - the resourceId value to set.

Returns:

the IotHubSettings object itself.

Applies to