DiagnosticsStorageAccountConfig Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.DiagnosticsStorageAccountConfig

Implements

public final class DiagnosticsStorageAccountConfig
implements JsonSerializable<DiagnosticsStorageAccountConfig>

The storage account information for storing Service Fabric diagnostic logs.

Constructor Summary

Constructor Description
DiagnosticsStorageAccountConfig()

Creates an instance of DiagnosticsStorageAccountConfig class.

Method Summary

Modifier and Type Method and Description
String blobEndpoint()

Get the blobEndpoint property: The blob endpoint of the azure storage account.

static DiagnosticsStorageAccountConfig fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticsStorageAccountConfig from the JsonReader.

String protectedAccountKeyName()

Get the protectedAccountKeyName property: The protected diagnostics storage key name.

String protectedAccountKeyName2()

Get the protectedAccountKeyName2 property: The secondary protected diagnostics storage key name.

String queueEndpoint()

Get the queueEndpoint property: The queue endpoint of the azure storage account.

String storageAccountName()

Get the storageAccountName property: The Azure storage account name.

String tableEndpoint()

Get the tableEndpoint property: The table endpoint of the azure storage account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiagnosticsStorageAccountConfig withBlobEndpoint(String blobEndpoint)

Set the blobEndpoint property: The blob endpoint of the azure storage account.

DiagnosticsStorageAccountConfig withProtectedAccountKeyName(String protectedAccountKeyName)

Set the protectedAccountKeyName property: The protected diagnostics storage key name.

DiagnosticsStorageAccountConfig withProtectedAccountKeyName2(String protectedAccountKeyName2)

Set the protectedAccountKeyName2 property: The secondary protected diagnostics storage key name.

DiagnosticsStorageAccountConfig withQueueEndpoint(String queueEndpoint)

Set the queueEndpoint property: The queue endpoint of the azure storage account.

DiagnosticsStorageAccountConfig withStorageAccountName(String storageAccountName)

Set the storageAccountName property: The Azure storage account name.

DiagnosticsStorageAccountConfig withTableEndpoint(String tableEndpoint)

Set the tableEndpoint property: The table endpoint of the azure storage account.

Methods inherited from java.lang.Object

Constructor Details

DiagnosticsStorageAccountConfig

public DiagnosticsStorageAccountConfig()

Creates an instance of DiagnosticsStorageAccountConfig class.

Method Details

blobEndpoint

public String blobEndpoint()

Get the blobEndpoint property: The blob endpoint of the azure storage account.

Returns:

the blobEndpoint value.

fromJson

public static DiagnosticsStorageAccountConfig fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticsStorageAccountConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

protectedAccountKeyName

public String protectedAccountKeyName()

Get the protectedAccountKeyName property: The protected diagnostics storage key name.

Returns:

the protectedAccountKeyName value.

protectedAccountKeyName2

public String protectedAccountKeyName2()

Get the protectedAccountKeyName2 property: The secondary protected diagnostics storage key name. If one of the storage account keys is rotated the cluster will fallback to using the other.

Returns:

the protectedAccountKeyName2 value.

queueEndpoint

public String queueEndpoint()

Get the queueEndpoint property: The queue endpoint of the azure storage account.

Returns:

the queueEndpoint value.

storageAccountName

public String storageAccountName()

Get the storageAccountName property: The Azure storage account name.

Returns:

the storageAccountName value.

tableEndpoint

public String tableEndpoint()

Get the tableEndpoint property: The table endpoint of the azure storage account.

Returns:

the tableEndpoint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBlobEndpoint

public DiagnosticsStorageAccountConfig withBlobEndpoint(String blobEndpoint)

Set the blobEndpoint property: The blob endpoint of the azure storage account.

Parameters:

blobEndpoint - the blobEndpoint value to set.

Returns:

the DiagnosticsStorageAccountConfig object itself.

withProtectedAccountKeyName

public DiagnosticsStorageAccountConfig withProtectedAccountKeyName(String protectedAccountKeyName)

Set the protectedAccountKeyName property: The protected diagnostics storage key name.

Parameters:

protectedAccountKeyName - the protectedAccountKeyName value to set.

Returns:

the DiagnosticsStorageAccountConfig object itself.

withProtectedAccountKeyName2

public DiagnosticsStorageAccountConfig withProtectedAccountKeyName2(String protectedAccountKeyName2)

Set the protectedAccountKeyName2 property: The secondary protected diagnostics storage key name. If one of the storage account keys is rotated the cluster will fallback to using the other.

Parameters:

protectedAccountKeyName2 - the protectedAccountKeyName2 value to set.

Returns:

the DiagnosticsStorageAccountConfig object itself.

withQueueEndpoint

public DiagnosticsStorageAccountConfig withQueueEndpoint(String queueEndpoint)

Set the queueEndpoint property: The queue endpoint of the azure storage account.

Parameters:

queueEndpoint - the queueEndpoint value to set.

Returns:

the DiagnosticsStorageAccountConfig object itself.

withStorageAccountName

public DiagnosticsStorageAccountConfig withStorageAccountName(String storageAccountName)

Set the storageAccountName property: The Azure storage account name.

Parameters:

storageAccountName - the storageAccountName value to set.

Returns:

the DiagnosticsStorageAccountConfig object itself.

withTableEndpoint

public DiagnosticsStorageAccountConfig withTableEndpoint(String tableEndpoint)

Set the tableEndpoint property: The table endpoint of the azure storage account.

Parameters:

tableEndpoint - the tableEndpoint value to set.

Returns:

the DiagnosticsStorageAccountConfig object itself.

Applies to