StorageAccount Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.models.StorageAccount

Implements

public class StorageAccount
implements JsonSerializable<StorageAccount>

The properties that are associated with an Azure Storage account.

Constructor Summary

Constructor Description
StorageAccount()

Creates an instance of StorageAccount class.

Method Summary

Modifier and Type Method and Description
String accountKey()

Get the accountKey property: The account key for the Azure Storage account.

String accountName()

Get the accountName property: The name of the Azure Storage account.

AuthenticationMode authenticationMode()

Get the authenticationMode property: Authentication Mode.

static StorageAccount fromJson(JsonReader jsonReader)

Reads an instance of StorageAccount from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageAccount withAccountKey(String accountKey)

Set the accountKey property: The account key for the Azure Storage account.

StorageAccount withAccountName(String accountName)

Set the accountName property: The name of the Azure Storage account.

StorageAccount withAuthenticationMode(AuthenticationMode authenticationMode)

Set the authenticationMode property: Authentication Mode.

Methods inherited from java.lang.Object

Constructor Details

StorageAccount

public StorageAccount()

Creates an instance of StorageAccount class.

Method Details

accountKey

public String accountKey()

Get the accountKey property: The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.

Returns:

the accountKey value.

accountName

public String accountName()

Get the accountName property: The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.

Returns:

the accountName value.

authenticationMode

public AuthenticationMode authenticationMode()

Get the authenticationMode property: Authentication Mode.

Returns:

the authenticationMode value.

fromJson

public static StorageAccount fromJson(JsonReader jsonReader)

Reads an instance of StorageAccount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccountKey

public StorageAccount withAccountKey(String accountKey)

Set the accountKey property: The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.

Parameters:

accountKey - the accountKey value to set.

Returns:

the StorageAccount object itself.

withAccountName

public StorageAccount withAccountName(String accountName)

Set the accountName property: The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.

Parameters:

accountName - the accountName value to set.

Returns:

the StorageAccount object itself.

withAuthenticationMode

public StorageAccount withAuthenticationMode(AuthenticationMode authenticationMode)

Set the authenticationMode property: Authentication Mode.

Parameters:

authenticationMode - the authenticationMode value to set.

Returns:

the StorageAccount object itself.

Applies to