InstanceInner Class

public final class InstanceInner
extends Resource

Device Update instance details.

Constructor Summary

Constructor Description
InstanceInner()

Creates an instance of InstanceInner 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 InstanceInner fromJson(JsonReader jsonReader)

Reads an instance of InstanceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

List<IotHubSettings> iotHubs()

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

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

InstanceInner withDiagnosticStorageProperties(DiagnosticStorageProperties diagnosticStorageProperties)

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

InstanceInner withEnableDiagnostics(Boolean enableDiagnostics)

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

InstanceInner withIotHubs(List<IotHubSettings> iotHubs)

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

InstanceInner withLocation(String location)
InstanceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

InstanceInner

public InstanceInner()

Creates an instance of InstanceInner 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 InstanceInner fromJson(JsonReader jsonReader)

Reads an instance of InstanceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

InstanceInner.id()

Returns:

the id value.

iotHubs

public List<IotHubSettings> iotHubs()

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

Returns:

the iotHubs value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

InstanceInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InstanceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

InstanceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDiagnosticStorageProperties

public InstanceInner withDiagnosticStorageProperties(DiagnosticStorageProperties diagnosticStorageProperties)

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

Parameters:

diagnosticStorageProperties - the diagnosticStorageProperties value to set.

Returns:

the InstanceInner object itself.

withEnableDiagnostics

public InstanceInner withEnableDiagnostics(Boolean enableDiagnostics)

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

Parameters:

enableDiagnostics - the enableDiagnostics value to set.

Returns:

the InstanceInner object itself.

withIotHubs

public InstanceInner 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 InstanceInner object itself.

withLocation

public InstanceInner withLocation(String location)

Overrides:

InstanceInner.withLocation(String location)

Parameters:

location

withTags

public InstanceInner withTags(Map<String,String> tags)

Overrides:

InstanceInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to