DiagnosticStorageProperties Class

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

Implements

public final class DiagnosticStorageProperties
implements JsonSerializable<DiagnosticStorageProperties>

Customer-initiated diagnostic log collection storage properties.

Constructor Summary

Constructor Description
DiagnosticStorageProperties()

Creates an instance of DiagnosticStorageProperties class.

Method Summary

Modifier and Type Method and Description
AuthenticationType authenticationType()

Get the authenticationType property: Authentication Type.

String connectionString()

Get the connectionString property: ConnectionString of the diagnostic storage account.

static DiagnosticStorageProperties fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticStorageProperties from the JsonReader.

String resourceId()

Get the resourceId property: ResourceId of the diagnostic storage account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiagnosticStorageProperties withAuthenticationType(AuthenticationType authenticationType)

Set the authenticationType property: Authentication Type.

DiagnosticStorageProperties withConnectionString(String connectionString)

Set the connectionString property: ConnectionString of the diagnostic storage account.

DiagnosticStorageProperties withResourceId(String resourceId)

Set the resourceId property: ResourceId of the diagnostic storage account.

Methods inherited from java.lang.Object

Constructor Details

DiagnosticStorageProperties

public DiagnosticStorageProperties()

Creates an instance of DiagnosticStorageProperties class.

Method Details

authenticationType

public AuthenticationType authenticationType()

Get the authenticationType property: Authentication Type.

Returns:

the authenticationType value.

connectionString

public String connectionString()

Get the connectionString property: ConnectionString of the diagnostic storage account.

Returns:

the connectionString value.

fromJson

public static DiagnosticStorageProperties fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticStorageProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiagnosticStorageProperties 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: ResourceId of the diagnostic storage account.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthenticationType

public DiagnosticStorageProperties withAuthenticationType(AuthenticationType authenticationType)

Set the authenticationType property: Authentication Type.

Parameters:

authenticationType - the authenticationType value to set.

Returns:

the DiagnosticStorageProperties object itself.

withConnectionString

public DiagnosticStorageProperties withConnectionString(String connectionString)

Set the connectionString property: ConnectionString of the diagnostic storage account.

Parameters:

connectionString - the connectionString value to set.

Returns:

the DiagnosticStorageProperties object itself.

withResourceId

public DiagnosticStorageProperties withResourceId(String resourceId)

Set the resourceId property: ResourceId of the diagnostic storage account.

Parameters:

resourceId - the resourceId value to set.

Returns:

the DiagnosticStorageProperties object itself.

Applies to