WorkspaceInner Class

public final class WorkspaceInner
extends ResourceModelWithAllowedPropertySet

Represents a Workspace definition.

Constructor Summary

Constructor Description
WorkspaceInner()

Creates an instance of WorkspaceInner class.

Method Summary

Modifier and Type Method and Description
List<String> applicationGroupReferences()

Get the applicationGroupReferences property: List of applicationGroup resource Ids.

Boolean cloudPcResource()

Get the cloudPcResource property: Is cloud pc resource.

String description()

Get the description property: Description of Workspace.

String etag()

Get the etag property: The etag field is *not* required.

String friendlyName()

Get the friendlyName property: Friendly name of Workspace.

static WorkspaceInner fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceInner 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.

String objectId()

Get the objectId property: ObjectId of Workspace.

List<PrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connection associated with the specified resource.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

WorkspaceInner withApplicationGroupReferences(List<String> applicationGroupReferences)

Set the applicationGroupReferences property: List of applicationGroup resource Ids.

WorkspaceInner withDescription(String description)

Set the description property: Description of Workspace.

WorkspaceInner withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of Workspace.

WorkspaceInner withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)

Set the identity property: The identity property.

WorkspaceInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.

WorkspaceInner withLocation(String location)
WorkspaceInner withManagedBy(String managedBy)

Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.

WorkspaceInner withPlan(ResourceModelWithAllowedPropertySetPlan plan)

Set the plan property: The plan property.

WorkspaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.

WorkspaceInner withSku(ResourceModelWithAllowedPropertySetSku sku)

Set the sku property: The sku property.

WorkspaceInner withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from ResourceModelWithAllowedPropertySet

Methods inherited from java.lang.Object

Constructor Details

WorkspaceInner

public WorkspaceInner()

Creates an instance of WorkspaceInner class.

Method Details

applicationGroupReferences

public List<String> applicationGroupReferences()

Get the applicationGroupReferences property: List of applicationGroup resource Ids.

Returns:

the applicationGroupReferences value.

cloudPcResource

public Boolean cloudPcResource()

Get the cloudPcResource property: Is cloud pc resource.

Returns:

the cloudPcResource value.

description

public String description()

Get the description property: Description of Workspace.

Returns:

the description value.

etag

public String etag()

Get the etag property: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

Overrides:

WorkspaceInner.etag()

Returns:

the etag value.

friendlyName

public String friendlyName()

Get the friendlyName property: Friendly name of Workspace.

Returns:

the friendlyName value.

fromJson

public static WorkspaceInner fromJson(JsonReader jsonReader)

Reads an instance of WorkspaceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

WorkspaceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

WorkspaceInner.name()

Returns:

the name value.

objectId

public String objectId()

Get the objectId property: ObjectId of Workspace. (internal use).

Returns:

the objectId value.

privateEndpointConnections

public List<PrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connection associated with the specified resource.

Returns:

the privateEndpointConnections value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.

Returns:

the publicNetworkAccess value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Overrides:

WorkspaceInner.systemData()

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

WorkspaceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

WorkspaceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

WorkspaceInner.validate()

withApplicationGroupReferences

public WorkspaceInner withApplicationGroupReferences(List<String> applicationGroupReferences)

Set the applicationGroupReferences property: List of applicationGroup resource Ids.

Parameters:

applicationGroupReferences - the applicationGroupReferences value to set.

Returns:

the WorkspaceInner object itself.

withDescription

public WorkspaceInner withDescription(String description)

Set the description property: Description of Workspace.

Parameters:

description - the description value to set.

Returns:

the WorkspaceInner object itself.

withFriendlyName

public WorkspaceInner withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of Workspace.

Parameters:

friendlyName - the friendlyName value to set.

Returns:

the WorkspaceInner object itself.

withIdentity

public WorkspaceInner withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)

Set the identity property: The identity property.

Overrides:

WorkspaceInner.withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)

Parameters:

identity

withKind

public WorkspaceInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Overrides:

WorkspaceInner.withKind(String kind)

Parameters:

kind

withLocation

public WorkspaceInner withLocation(String location)

Overrides:

WorkspaceInner.withLocation(String location)

Parameters:

location

withManagedBy

public WorkspaceInner withManagedBy(String managedBy)

Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.

Overrides:

WorkspaceInner.withManagedBy(String managedBy)

Parameters:

managedBy

withPlan

public WorkspaceInner withPlan(ResourceModelWithAllowedPropertySetPlan plan)

Set the plan property: The plan property.

Overrides:

WorkspaceInner.withPlan(ResourceModelWithAllowedPropertySetPlan plan)

Parameters:

plan

withPublicNetworkAccess

public WorkspaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the WorkspaceInner object itself.

withSku

public WorkspaceInner withSku(ResourceModelWithAllowedPropertySetSku sku)

Set the sku property: The sku property.

Overrides:

WorkspaceInner.withSku(ResourceModelWithAllowedPropertySetSku sku)

Parameters:

sku

withTags

public WorkspaceInner withTags(Map<String,String> tags)

Overrides:

WorkspaceInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to