StorageInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.appcomplianceautomation.models.StorageInfo

Implements

public final class StorageInfo
implements JsonSerializable<StorageInfo>

The information of 'bring your own storage' account binding to the report.

Constructor Summary

Constructor Description
StorageInfo()

Creates an instance of StorageInfo class.

Method Summary

Modifier and Type Method and Description
String accountName()

Get the accountName property: 'bring your own storage' account name.

static StorageInfo fromJson(JsonReader jsonReader)

Reads an instance of StorageInfo from the JsonReader.

String location()

Get the location property: The region of 'bring your own storage' account.

String resourceGroup()

Get the resourceGroup property: The resourceGroup which 'bring your own storage' account belongs to.

String subscriptionId()

Get the subscriptionId property: The subscription id which 'bring your own storage' account belongs to.

JsonWriter toJson(JsonWriter jsonWriter)
StorageInfo withAccountName(String accountName)

Set the accountName property: 'bring your own storage' account name.

StorageInfo withLocation(String location)

Set the location property: The region of 'bring your own storage' account.

StorageInfo withResourceGroup(String resourceGroup)

Set the resourceGroup property: The resourceGroup which 'bring your own storage' account belongs to.

StorageInfo withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The subscription id which 'bring your own storage' account belongs to.

Methods inherited from java.lang.Object

Constructor Details

StorageInfo

public StorageInfo()

Creates an instance of StorageInfo class.

Method Details

accountName

public String accountName()

Get the accountName property: 'bring your own storage' account name.

Returns:

the accountName value.

fromJson

public static StorageInfo fromJson(JsonReader jsonReader)

Reads an instance of StorageInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: The region of 'bring your own storage' account.

Returns:

the location value.

resourceGroup

public String resourceGroup()

Get the resourceGroup property: The resourceGroup which 'bring your own storage' account belongs to.

Returns:

the resourceGroup value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription id which 'bring your own storage' account belongs to.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAccountName

public StorageInfo withAccountName(String accountName)

Set the accountName property: 'bring your own storage' account name.

Parameters:

accountName - the accountName value to set.

Returns:

the StorageInfo object itself.

withLocation

public StorageInfo withLocation(String location)

Set the location property: The region of 'bring your own storage' account.

Parameters:

location - the location value to set.

Returns:

the StorageInfo object itself.

withResourceGroup

public StorageInfo withResourceGroup(String resourceGroup)

Set the resourceGroup property: The resourceGroup which 'bring your own storage' account belongs to.

Parameters:

resourceGroup - the resourceGroup value to set.

Returns:

the StorageInfo object itself.

withSubscriptionId

public StorageInfo withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The subscription id which 'bring your own storage' account belongs to.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the StorageInfo object itself.

Applies to