StorageAccountCredentialInner Class

public final class StorageAccountCredentialInner
extends ArmBaseModel

The storage account credential.

Constructor Summary

Constructor Description
StorageAccountCredentialInner()

Creates an instance of StorageAccountCredentialInner class.

Method Summary

Modifier and Type Method and Description
AsymmetricEncryptedSecret accountKey()

Get the accountKey property: Encrypted storage key.

AccountType accountType()

Get the accountType property: Type of storage accessed on the storage account.

String alias()

Get the alias property: Alias for the storage account.

String blobDomainName()

Get the blobDomainName property: Blob end point for private clouds.

String connectionString()

Get the connectionString property: Connection string for the storage account.

static StorageAccountCredentialInner fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountCredentialInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

SslStatus sslStatus()

Get the sslStatus property: Signifies whether SSL needs to be enabled or not.

String storageAccountId()

Get the storageAccountId property: Id of the storage account.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String username()

Get the username property: Username for the storage account.

void validate()

Validates the instance.

StorageAccountCredentialInner withAccountKey(AsymmetricEncryptedSecret accountKey)

Set the accountKey property: Encrypted storage key.

StorageAccountCredentialInner withAccountType(AccountType accountType)

Set the accountType property: Type of storage accessed on the storage account.

StorageAccountCredentialInner withAlias(String alias)

Set the alias property: Alias for the storage account.

StorageAccountCredentialInner withBlobDomainName(String blobDomainName)

Set the blobDomainName property: Blob end point for private clouds.

StorageAccountCredentialInner withConnectionString(String connectionString)

Set the connectionString property: Connection string for the storage account.

StorageAccountCredentialInner withSslStatus(SslStatus sslStatus)

Set the sslStatus property: Signifies whether SSL needs to be enabled or not.

StorageAccountCredentialInner withStorageAccountId(String storageAccountId)

Set the storageAccountId property: Id of the storage account.

StorageAccountCredentialInner withUsername(String username)

Set the username property: Username for the storage account.

Methods inherited from ArmBaseModel

Methods inherited from java.lang.Object

Constructor Details

StorageAccountCredentialInner

public StorageAccountCredentialInner()

Creates an instance of StorageAccountCredentialInner class.

Method Details

accountKey

public AsymmetricEncryptedSecret accountKey()

Get the accountKey property: Encrypted storage key.

Returns:

the accountKey value.

accountType

public AccountType accountType()

Get the accountType property: Type of storage accessed on the storage account.

Returns:

the accountType value.

alias

public String alias()

Get the alias property: Alias for the storage account.

Returns:

the alias value.

blobDomainName

public String blobDomainName()

Get the blobDomainName property: Blob end point for private clouds.

Returns:

the blobDomainName value.

connectionString

public String connectionString()

Get the connectionString property: Connection string for the storage account. Use this string if username and account key are not specified.

Returns:

the connectionString value.

fromJson

public static StorageAccountCredentialInner fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountCredentialInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageAccountCredentialInner 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:

StorageAccountCredentialInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

StorageAccountCredentialInner.name()

Returns:

the name value.

sslStatus

public SslStatus sslStatus()

Get the sslStatus property: Signifies whether SSL needs to be enabled or not.

Returns:

the sslStatus value.

storageAccountId

public String storageAccountId()

Get the storageAccountId property: Id of the storage account.

Returns:

the storageAccountId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StorageAccountCredentialInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

StorageAccountCredentialInner.type()

Returns:

the type value.

username

public String username()

Get the username property: Username for the storage account.

Returns:

the username value.

validate

public void validate()

Validates the instance.

Overrides:

StorageAccountCredentialInner.validate()

withAccountKey

public StorageAccountCredentialInner withAccountKey(AsymmetricEncryptedSecret accountKey)

Set the accountKey property: Encrypted storage key.

Parameters:

accountKey - the accountKey value to set.

Returns:

the StorageAccountCredentialInner object itself.

withAccountType

public StorageAccountCredentialInner withAccountType(AccountType accountType)

Set the accountType property: Type of storage accessed on the storage account.

Parameters:

accountType - the accountType value to set.

Returns:

the StorageAccountCredentialInner object itself.

withAlias

public StorageAccountCredentialInner withAlias(String alias)

Set the alias property: Alias for the storage account.

Parameters:

alias - the alias value to set.

Returns:

the StorageAccountCredentialInner object itself.

withBlobDomainName

public StorageAccountCredentialInner withBlobDomainName(String blobDomainName)

Set the blobDomainName property: Blob end point for private clouds.

Parameters:

blobDomainName - the blobDomainName value to set.

Returns:

the StorageAccountCredentialInner object itself.

withConnectionString

public StorageAccountCredentialInner withConnectionString(String connectionString)

Set the connectionString property: Connection string for the storage account. Use this string if username and account key are not specified.

Parameters:

connectionString - the connectionString value to set.

Returns:

the StorageAccountCredentialInner object itself.

withSslStatus

public StorageAccountCredentialInner withSslStatus(SslStatus sslStatus)

Set the sslStatus property: Signifies whether SSL needs to be enabled or not.

Parameters:

sslStatus - the sslStatus value to set.

Returns:

the StorageAccountCredentialInner object itself.

withStorageAccountId

public StorageAccountCredentialInner withStorageAccountId(String storageAccountId)

Set the storageAccountId property: Id of the storage account.

Parameters:

storageAccountId - the storageAccountId value to set.

Returns:

the StorageAccountCredentialInner object itself.

withUsername

public StorageAccountCredentialInner withUsername(String username)

Set the username property: Username for the storage account.

Parameters:

username - the username value to set.

Returns:

the StorageAccountCredentialInner object itself.

Applies to