Class WorkspaceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet
-
- com.azure.resourcemanager.desktopvirtualization.fluent.models.WorkspaceInner
-
public final class WorkspaceInner extends ResourceModelWithAllowedPropertySet
Represents a Workspace definition.
-
-
Constructor Summary
Constructors Constructor Description WorkspaceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>applicationGroupReferences()Get the applicationGroupReferences property: List of applicationGroup resource Ids.BooleancloudPcResource()Get the cloudPcResource property: Is cloud pc resource.Stringdescription()Get the description property: Description of Workspace.StringfriendlyName()Get the friendlyName property: Friendly name of Workspace.StringobjectId()Get the objectId property: ObjectId of Workspace.PublicNetworkAccesspublicNetworkAccess()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.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.voidvalidate()Validates the instance.WorkspaceInnerwithApplicationGroupReferences(List<String> applicationGroupReferences)Set the applicationGroupReferences property: List of applicationGroup resource Ids.WorkspaceInnerwithDescription(String description)Set the description property: Description of Workspace.WorkspaceInnerwithFriendlyName(String friendlyName)Set the friendlyName property: Friendly name of Workspace.WorkspaceInnerwithIdentity(ResourceModelWithAllowedPropertySetIdentity identity)Set the identity property: The identity property.WorkspaceInnerwithKind(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.WorkspaceInnerwithLocation(String location)WorkspaceInnerwithManagedBy(String managedBy)Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.WorkspaceInnerwithPlan(ResourceModelWithAllowedPropertySetPlan plan)Set the plan property: The plan property.WorkspaceInnerwithPublicNetworkAccess(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.WorkspaceInnerwithSku(ResourceModelWithAllowedPropertySetSku sku)Set the sku property: The sku property.WorkspaceInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
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:
withManagedByin classResourceModelWithAllowedPropertySet- Parameters:
managedBy- the managedBy value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
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:
withKindin classResourceModelWithAllowedPropertySet- Parameters:
kind- the kind value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withIdentity
public WorkspaceInner withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)
Set the identity property: The identity property.- Overrides:
withIdentityin classResourceModelWithAllowedPropertySet- Parameters:
identity- the identity value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withSku
public WorkspaceInner withSku(ResourceModelWithAllowedPropertySetSku sku)
Set the sku property: The sku property.- Overrides:
withSkuin classResourceModelWithAllowedPropertySet- Parameters:
sku- the sku value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withPlan
public WorkspaceInner withPlan(ResourceModelWithAllowedPropertySetPlan plan)
Set the plan property: The plan property.- Overrides:
withPlanin classResourceModelWithAllowedPropertySet- Parameters:
plan- the plan value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withLocation
public WorkspaceInner withLocation(String location)
- Overrides:
withLocationin classResourceModelWithAllowedPropertySet
-
withTags
public WorkspaceInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classResourceModelWithAllowedPropertySet
-
objectId
public String objectId()
Get the objectId property: ObjectId of Workspace. (internal use).- Returns:
- the objectId value.
-
description
public String description()
Get the description property: Description of Workspace.- Returns:
- the description value.
-
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.
-
friendlyName
public String friendlyName()
Get the friendlyName property: Friendly name of Workspace.- Returns:
- the friendlyName value.
-
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.
-
applicationGroupReferences
public List<String> applicationGroupReferences()
Get the applicationGroupReferences property: List of applicationGroup resource Ids.- Returns:
- the applicationGroupReferences value.
-
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.
-
cloudPcResource
public Boolean cloudPcResource()
Get the cloudPcResource property: Is cloud pc resource.- Returns:
- the cloudPcResource 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.
-
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.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classResourceModelWithAllowedPropertySet- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-