StorageConnectorProperties Class

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

Implements

public final class StorageConnectorProperties
implements JsonSerializable<StorageConnectorProperties>

The storage connector properties.

Constructor Summary

Constructor Description
StorageConnectorProperties()

Creates an instance of StorageConnectorProperties class.

Method Summary

Modifier and Type Method and Description
String creationTime()

Get the creationTime property: System-generated creation time of the Storage Connector in ISO 8601 date-time format (YYYY-MM-DDTHH:mm:ssZ).

StorageConnectorDataSourceType dataSourceType()

Get the dataSourceType property: The type of backing data source for this Storage Connector.

String description()

Get the description property: Arbitrary description of this Storage Connector.

static StorageConnectorProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageConnectorProperties from the JsonReader.

NativeDataSharingProvisioningState provisioningState()

Get the provisioningState property: Represents the provisioning state of the storage connector.

StorageConnectorSource source()

Get the source property: Information about how to communicate with and authenticate to the backing data store.

StorageConnectorState state()

Get the state property: State - Active or Inactive.

Boolean testConnection()

Get the testConnection property: Test connection to backing data source before creating the storage connector.

JsonWriter toJson(JsonWriter jsonWriter)
String uniqueId()

Get the uniqueId property: System-generated GUID identifier for the Storage Connector.

void validate()

Validates the instance.

StorageConnectorProperties withDataSourceType(StorageConnectorDataSourceType dataSourceType)

Set the dataSourceType property: The type of backing data source for this Storage Connector.

StorageConnectorProperties withDescription(String description)

Set the description property: Arbitrary description of this Storage Connector.

StorageConnectorProperties withSource(StorageConnectorSource source)

Set the source property: Information about how to communicate with and authenticate to the backing data store.

StorageConnectorProperties withState(StorageConnectorState state)

Set the state property: State - Active or Inactive.

StorageConnectorProperties withTestConnection(Boolean testConnection)

Set the testConnection property: Test connection to backing data source before creating the storage connector.

Methods inherited from java.lang.Object

Constructor Details

StorageConnectorProperties

public StorageConnectorProperties()

Creates an instance of StorageConnectorProperties class.

Method Details

creationTime

public String creationTime()

Get the creationTime property: System-generated creation time of the Storage Connector in ISO 8601 date-time format (YYYY-MM-DDTHH:mm:ssZ). Not a valid input parameter during creating.

Returns:

the creationTime value.

dataSourceType

public StorageConnectorDataSourceType dataSourceType()

Get the dataSourceType property: The type of backing data source for this Storage Connector.

Returns:

the dataSourceType value.

description

public String description()

Get the description property: Arbitrary description of this Storage Connector. Max 250 characters.

Returns:

the description value.

fromJson

public static StorageConnectorProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageConnectorProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public NativeDataSharingProvisioningState provisioningState()

Get the provisioningState property: Represents the provisioning state of the storage connector.

Returns:

the provisioningState value.

source

public StorageConnectorSource source()

Get the source property: Information about how to communicate with and authenticate to the backing data store.

Returns:

the source value.

state

public StorageConnectorState state()

Get the state property: State - Active or Inactive. Whether or not the Storage Connector should start as active (default: Active) (While set to false on the Storage Connector, all data plane requests using this Storage Connector fail, and this Storage Connector is not billed if it would be otherwise.

Returns:

the state value.

testConnection

public Boolean testConnection()

Get the testConnection property: Test connection to backing data source before creating the storage connector.

Returns:

the testConnection value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uniqueId

public String uniqueId()

Get the uniqueId property: System-generated GUID identifier for the Storage Connector. Not a valid input parameter when creating.

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

withDataSourceType

public StorageConnectorProperties withDataSourceType(StorageConnectorDataSourceType dataSourceType)

Set the dataSourceType property: The type of backing data source for this Storage Connector.

Parameters:

dataSourceType - the dataSourceType value to set.

Returns:

the StorageConnectorProperties object itself.

withDescription

public StorageConnectorProperties withDescription(String description)

Set the description property: Arbitrary description of this Storage Connector. Max 250 characters.

Parameters:

description - the description value to set.

Returns:

the StorageConnectorProperties object itself.

withSource

public StorageConnectorProperties withSource(StorageConnectorSource source)

Set the source property: Information about how to communicate with and authenticate to the backing data store.

Parameters:

source - the source value to set.

Returns:

the StorageConnectorProperties object itself.

withState

public StorageConnectorProperties withState(StorageConnectorState state)

Set the state property: State - Active or Inactive. Whether or not the Storage Connector should start as active (default: Active) (While set to false on the Storage Connector, all data plane requests using this Storage Connector fail, and this Storage Connector is not billed if it would be otherwise.

Parameters:

state - the state value to set.

Returns:

the StorageConnectorProperties object itself.

withTestConnection

public StorageConnectorProperties withTestConnection(Boolean testConnection)

Set the testConnection property: Test connection to backing data source before creating the storage connector.

Parameters:

testConnection - the testConnection value to set.

Returns:

the StorageConnectorProperties object itself.

Applies to