StorageDataCollaborationPolicyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.StorageDataCollaborationPolicyProperties

Implements

public final class StorageDataCollaborationPolicyProperties
implements JsonSerializable<StorageDataCollaborationPolicyProperties>

Defines Data Collaboration Policy for a storage account.

Constructor Summary

Constructor Description
StorageDataCollaborationPolicyProperties()

Creates an instance of StorageDataCollaborationPolicyProperties class.

Method Summary

Modifier and Type Method and Description
Boolean allowCrossTenantDataSharing()

Get the allowCrossTenantDataSharing property: Indicates whether cross-entra tenant data sharing is allowed on the storage account.

Boolean allowStorageConnectors()

Get the allowStorageConnectors property: Indicates whether storage connectors are allowed to created or managed on the storage account.

Boolean allowStorageDataShares()

Get the allowStorageDataShares property: Indicates whether data shares are allowed to be created or managed on the storage account.

static StorageDataCollaborationPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageDataCollaborationPolicyProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageDataCollaborationPolicyProperties withAllowCrossTenantDataSharing(Boolean allowCrossTenantDataSharing)

Set the allowCrossTenantDataSharing property: Indicates whether cross-entra tenant data sharing is allowed on the storage account.

StorageDataCollaborationPolicyProperties withAllowStorageConnectors(Boolean allowStorageConnectors)

Set the allowStorageConnectors property: Indicates whether storage connectors are allowed to created or managed on the storage account.

StorageDataCollaborationPolicyProperties withAllowStorageDataShares(Boolean allowStorageDataShares)

Set the allowStorageDataShares property: Indicates whether data shares are allowed to be created or managed on the storage account.

Methods inherited from java.lang.Object

Constructor Details

StorageDataCollaborationPolicyProperties

public StorageDataCollaborationPolicyProperties()

Creates an instance of StorageDataCollaborationPolicyProperties class.

Method Details

allowCrossTenantDataSharing

public Boolean allowCrossTenantDataSharing()

Get the allowCrossTenantDataSharing property: Indicates whether cross-entra tenant data sharing is allowed on the storage account.

Returns:

the allowCrossTenantDataSharing value.

allowStorageConnectors

public Boolean allowStorageConnectors()

Get the allowStorageConnectors property: Indicates whether storage connectors are allowed to created or managed on the storage account.

Returns:

the allowStorageConnectors value.

allowStorageDataShares

public Boolean allowStorageDataShares()

Get the allowStorageDataShares property: Indicates whether data shares are allowed to be created or managed on the storage account.

Returns:

the allowStorageDataShares value.

fromJson

public static StorageDataCollaborationPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageDataCollaborationPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowCrossTenantDataSharing

public StorageDataCollaborationPolicyProperties withAllowCrossTenantDataSharing(Boolean allowCrossTenantDataSharing)

Set the allowCrossTenantDataSharing property: Indicates whether cross-entra tenant data sharing is allowed on the storage account.

Parameters:

allowCrossTenantDataSharing - the allowCrossTenantDataSharing value to set.

Returns:

the StorageDataCollaborationPolicyProperties object itself.

withAllowStorageConnectors

public StorageDataCollaborationPolicyProperties withAllowStorageConnectors(Boolean allowStorageConnectors)

Set the allowStorageConnectors property: Indicates whether storage connectors are allowed to created or managed on the storage account.

Parameters:

allowStorageConnectors - the allowStorageConnectors value to set.

Returns:

the StorageDataCollaborationPolicyProperties object itself.

withAllowStorageDataShares

public StorageDataCollaborationPolicyProperties withAllowStorageDataShares(Boolean allowStorageDataShares)

Set the allowStorageDataShares property: Indicates whether data shares are allowed to be created or managed on the storage account.

Parameters:

allowStorageDataShares - the allowStorageDataShares value to set.

Returns:

the StorageDataCollaborationPolicyProperties object itself.

Applies to