Share via


WorkspaceResourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.quantum.models.WorkspaceResourceProperties

Implements

public final class WorkspaceResourceProperties
implements JsonSerializable<WorkspaceResourceProperties>

Properties of a Workspace.

Constructor Summary

Constructor Description
WorkspaceResourceProperties()

Creates an instance of WorkspaceResourceProperties class.

Method Summary

Modifier and Type Method and Description
Boolean apiKeyEnabled()

Get the apiKeyEnabled property: Indicator of enablement of the Quantum workspace Api keys.

String endpointUri()

Get the endpointUri property: The URI of the workspace endpoint.

static WorkspaceResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceResourceProperties from the JsonReader.

List<Provider> providers()

Get the providers property: List of Providers selected for this Workspace.

ProvisioningStatus provisioningState()

Get the provisioningState property: Provisioning status field.

String storageAccount()

Get the storageAccount property: ARM Resource Id of the storage account associated with this workspace.

JsonWriter toJson(JsonWriter jsonWriter)
UsableStatus usable()

Get the usable property: Whether the current workspace is ready to accept Jobs.

void validate()

Validates the instance.

WorkspaceResourceProperties withApiKeyEnabled(Boolean apiKeyEnabled)

Set the apiKeyEnabled property: Indicator of enablement of the Quantum workspace Api keys.

WorkspaceResourceProperties withProviders(List<Provider> providers)

Set the providers property: List of Providers selected for this Workspace.

WorkspaceResourceProperties withStorageAccount(String storageAccount)

Set the storageAccount property: ARM Resource Id of the storage account associated with this workspace.

Methods inherited from java.lang.Object

Constructor Details

WorkspaceResourceProperties

public WorkspaceResourceProperties()

Creates an instance of WorkspaceResourceProperties class.

Method Details

apiKeyEnabled

public Boolean apiKeyEnabled()

Get the apiKeyEnabled property: Indicator of enablement of the Quantum workspace Api keys.

Returns:

the apiKeyEnabled value.

endpointUri

public String endpointUri()

Get the endpointUri property: The URI of the workspace endpoint.

Returns:

the endpointUri value.

fromJson

public static WorkspaceResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceResourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

providers

public List<Provider> providers()

Get the providers property: List of Providers selected for this Workspace.

Returns:

the providers value.

provisioningState

public ProvisioningStatus provisioningState()

Get the provisioningState property: Provisioning status field.

Returns:

the provisioningState value.

storageAccount

public String storageAccount()

Get the storageAccount property: ARM Resource Id of the storage account associated with this workspace.

Returns:

the storageAccount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usable

public UsableStatus usable()

Get the usable property: Whether the current workspace is ready to accept Jobs.

Returns:

the usable value.

validate

public void validate()

Validates the instance.

withApiKeyEnabled

public WorkspaceResourceProperties withApiKeyEnabled(Boolean apiKeyEnabled)

Set the apiKeyEnabled property: Indicator of enablement of the Quantum workspace Api keys.

Parameters:

apiKeyEnabled - the apiKeyEnabled value to set.

Returns:

the WorkspaceResourceProperties object itself.

withProviders

public WorkspaceResourceProperties withProviders(List<Provider> providers)

Set the providers property: List of Providers selected for this Workspace.

Parameters:

providers - the providers value to set.

Returns:

the WorkspaceResourceProperties object itself.

withStorageAccount

public WorkspaceResourceProperties withStorageAccount(String storageAccount)

Set the storageAccount property: ARM Resource Id of the storage account associated with this workspace.

Parameters:

storageAccount - the storageAccount value to set.

Returns:

the WorkspaceResourceProperties object itself.

Applies to