InstanceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceupdate.fluent.models.InstanceProperties

Implements

public final class InstanceProperties
implements JsonSerializable<InstanceProperties>

Device Update instance properties.

Constructor Summary

Constructor Description
InstanceProperties()

Creates an instance of InstanceProperties class.

Method Summary

Modifier and Type Method and Description
String accountName()

Get the accountName property: Parent Device Update Account name which Instance belongs to.

DiagnosticStorageProperties diagnosticStorageProperties()

Get the diagnosticStorageProperties property: Customer-initiated diagnostic log collection storage properties.

Boolean enableDiagnostics()

Get the enableDiagnostics property: Enables or Disables the diagnostic logs collection.

static InstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of InstanceProperties from the JsonReader.

List<IotHubSettings> iotHubs()

Get the iotHubs property: List of IoT Hubs associated with the account.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InstanceProperties withDiagnosticStorageProperties(DiagnosticStorageProperties diagnosticStorageProperties)

Set the diagnosticStorageProperties property: Customer-initiated diagnostic log collection storage properties.

InstanceProperties withEnableDiagnostics(Boolean enableDiagnostics)

Set the enableDiagnostics property: Enables or Disables the diagnostic logs collection.

InstanceProperties withIotHubs(List<IotHubSettings> iotHubs)

Set the iotHubs property: List of IoT Hubs associated with the account.

Methods inherited from java.lang.Object

Constructor Details

InstanceProperties

public InstanceProperties()

Creates an instance of InstanceProperties class.

Method Details

accountName

public String accountName()

Get the accountName property: Parent Device Update Account name which Instance belongs to.

Returns:

the accountName value.

diagnosticStorageProperties

public DiagnosticStorageProperties diagnosticStorageProperties()

Get the diagnosticStorageProperties property: Customer-initiated diagnostic log collection storage properties.

Returns:

the diagnosticStorageProperties value.

enableDiagnostics

public Boolean enableDiagnostics()

Get the enableDiagnostics property: Enables or Disables the diagnostic logs collection.

Returns:

the enableDiagnostics value.

fromJson

public static InstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of InstanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the InstanceProperties.

iotHubs

public List<IotHubSettings> iotHubs()

Get the iotHubs property: List of IoT Hubs associated with the account.

Returns:

the iotHubs value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiagnosticStorageProperties

public InstanceProperties withDiagnosticStorageProperties(DiagnosticStorageProperties diagnosticStorageProperties)

Set the diagnosticStorageProperties property: Customer-initiated diagnostic log collection storage properties.

Parameters:

diagnosticStorageProperties - the diagnosticStorageProperties value to set.

Returns:

the InstanceProperties object itself.

withEnableDiagnostics

public InstanceProperties withEnableDiagnostics(Boolean enableDiagnostics)

Set the enableDiagnostics property: Enables or Disables the diagnostic logs collection.

Parameters:

enableDiagnostics - the enableDiagnostics value to set.

Returns:

the InstanceProperties object itself.

withIotHubs

public InstanceProperties withIotHubs(List<IotHubSettings> iotHubs)

Set the iotHubs property: List of IoT Hubs associated with the account.

Parameters:

iotHubs - the iotHubs value to set.

Returns:

the InstanceProperties object itself.

Applies to