Class HostPoolInner
- 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.HostPoolInner
-
public final class HostPoolInner extends ResourceModelWithAllowedPropertySet
Represents a HostPool definition.
-
-
Constructor Summary
Constructors Constructor Description HostPoolInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>applicationGroupReferences()Get the applicationGroupReferences property: List of applicationGroup links.BooleancloudPcResource()Get the cloudPcResource property: Is cloud pc resource.StringcustomRdpProperty()Get the customRdpProperty property: Custom rdp property of HostPool.Stringdescription()Get the description property: Description of HostPool.StringfriendlyName()Get the friendlyName property: Friendly name of HostPool.HostPoolTypehostPoolType()Get the hostPoolType property: HostPool type for desktop.LoadBalancerTypeloadBalancerType()Get the loadBalancerType property: The type of the load balancer.IntegermaxSessionLimit()Get the maxSessionLimit property: The max session limit of HostPool.MigrationRequestPropertiesmigrationRequest()Get the migrationRequest property: The registration info of HostPool.StringobjectId()Get the objectId property: ObjectId of HostPool.PersonalDesktopAssignmentTypepersonalDesktopAssignmentType()Get the personalDesktopAssignmentType property: PersonalDesktopAssignment type for HostPool.PreferredAppGroupTypepreferredAppGroupType()Get the preferredAppGroupType property: The type of preferred application group type, default to Desktop Application Group.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.RegistrationInfoInnerregistrationInfo()Get the registrationInfo property: The registration info of HostPool.Integerring()Get the ring property: The ring number of HostPool.StringssoadfsAuthority()Get the ssoadfsAuthority property: URL to customer ADFS server for signing WVD SSO certificates.StringssoClientId()Get the ssoClientId property: ClientId for the registered Relying Party used to issue WVD SSO certificates.StringssoClientSecretKeyVaultPath()Get the ssoClientSecretKeyVaultPath property: Path to Azure KeyVault storing the secret used for communication to ADFS.SsoSecretTypessoSecretType()Get the ssoSecretType property: The type of single sign on Secret Type.BooleanstartVMOnConnect()Get the startVMOnConnect property: The flag to turn on/off StartVMOnConnect feature.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.voidvalidate()Validates the instance.BooleanvalidationEnvironment()Get the validationEnvironment property: Is validation environment.StringvmTemplate()Get the vmTemplate property: VM template for sessionhosts configuration within hostpool.HostPoolInnerwithCustomRdpProperty(String customRdpProperty)Set the customRdpProperty property: Custom rdp property of HostPool.HostPoolInnerwithDescription(String description)Set the description property: Description of HostPool.HostPoolInnerwithFriendlyName(String friendlyName)Set the friendlyName property: Friendly name of HostPool.HostPoolInnerwithHostPoolType(HostPoolType hostPoolType)Set the hostPoolType property: HostPool type for desktop.HostPoolInnerwithIdentity(ResourceModelWithAllowedPropertySetIdentity identity)Set the identity property: The identity property.HostPoolInnerwithKind(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.HostPoolInnerwithLoadBalancerType(LoadBalancerType loadBalancerType)Set the loadBalancerType property: The type of the load balancer.HostPoolInnerwithLocation(String location)HostPoolInnerwithManagedBy(String managedBy)Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.HostPoolInnerwithMaxSessionLimit(Integer maxSessionLimit)Set the maxSessionLimit property: The max session limit of HostPool.HostPoolInnerwithMigrationRequest(MigrationRequestProperties migrationRequest)Set the migrationRequest property: The registration info of HostPool.HostPoolInnerwithPersonalDesktopAssignmentType(PersonalDesktopAssignmentType personalDesktopAssignmentType)Set the personalDesktopAssignmentType property: PersonalDesktopAssignment type for HostPool.HostPoolInnerwithPlan(ResourceModelWithAllowedPropertySetPlan plan)Set the plan property: The plan property.HostPoolInnerwithPreferredAppGroupType(PreferredAppGroupType preferredAppGroupType)Set the preferredAppGroupType property: The type of preferred application group type, default to Desktop Application Group.HostPoolInnerwithPublicNetworkAccess(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.HostPoolInnerwithRegistrationInfo(RegistrationInfoInner registrationInfo)Set the registrationInfo property: The registration info of HostPool.HostPoolInnerwithRing(Integer ring)Set the ring property: The ring number of HostPool.HostPoolInnerwithSku(ResourceModelWithAllowedPropertySetSku sku)Set the sku property: The sku property.HostPoolInnerwithSsoadfsAuthority(String ssoadfsAuthority)Set the ssoadfsAuthority property: URL to customer ADFS server for signing WVD SSO certificates.HostPoolInnerwithSsoClientId(String ssoClientId)Set the ssoClientId property: ClientId for the registered Relying Party used to issue WVD SSO certificates.HostPoolInnerwithSsoClientSecretKeyVaultPath(String ssoClientSecretKeyVaultPath)Set the ssoClientSecretKeyVaultPath property: Path to Azure KeyVault storing the secret used for communication to ADFS.HostPoolInnerwithSsoSecretType(SsoSecretType ssoSecretType)Set the ssoSecretType property: The type of single sign on Secret Type.HostPoolInnerwithStartVMOnConnect(Boolean startVMOnConnect)Set the startVMOnConnect property: The flag to turn on/off StartVMOnConnect feature.HostPoolInnerwithTags(Map<String,String> tags)HostPoolInnerwithValidationEnvironment(Boolean validationEnvironment)Set the validationEnvironment property: Is validation environment.HostPoolInnerwithVmTemplate(String vmTemplate)Set the vmTemplate property: VM template for sessionhosts configuration within hostpool.
-
-
-
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 HostPoolInner 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 HostPoolInner 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 HostPoolInner 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 HostPoolInner 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 HostPoolInner 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 HostPoolInner withLocation(String location)
- Overrides:
withLocationin classResourceModelWithAllowedPropertySet
-
withTags
public HostPoolInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classResourceModelWithAllowedPropertySet
-
objectId
public String objectId()
Get the objectId property: ObjectId of HostPool. (internal use).- Returns:
- the objectId value.
-
friendlyName
public String friendlyName()
Get the friendlyName property: Friendly name of HostPool.- Returns:
- the friendlyName value.
-
withFriendlyName
public HostPoolInner withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of HostPool.- Parameters:
friendlyName- the friendlyName value to set.- Returns:
- the HostPoolInner object itself.
-
description
public String description()
Get the description property: Description of HostPool.- Returns:
- the description value.
-
withDescription
public HostPoolInner withDescription(String description)
Set the description property: Description of HostPool.- Parameters:
description- the description value to set.- Returns:
- the HostPoolInner object itself.
-
hostPoolType
public HostPoolType hostPoolType()
Get the hostPoolType property: HostPool type for desktop.- Returns:
- the hostPoolType value.
-
withHostPoolType
public HostPoolInner withHostPoolType(HostPoolType hostPoolType)
Set the hostPoolType property: HostPool type for desktop.- Parameters:
hostPoolType- the hostPoolType value to set.- Returns:
- the HostPoolInner object itself.
-
personalDesktopAssignmentType
public PersonalDesktopAssignmentType personalDesktopAssignmentType()
Get the personalDesktopAssignmentType property: PersonalDesktopAssignment type for HostPool.- Returns:
- the personalDesktopAssignmentType value.
-
withPersonalDesktopAssignmentType
public HostPoolInner withPersonalDesktopAssignmentType(PersonalDesktopAssignmentType personalDesktopAssignmentType)
Set the personalDesktopAssignmentType property: PersonalDesktopAssignment type for HostPool.- Parameters:
personalDesktopAssignmentType- the personalDesktopAssignmentType value to set.- Returns:
- the HostPoolInner object itself.
-
customRdpProperty
public String customRdpProperty()
Get the customRdpProperty property: Custom rdp property of HostPool.- Returns:
- the customRdpProperty value.
-
withCustomRdpProperty
public HostPoolInner withCustomRdpProperty(String customRdpProperty)
Set the customRdpProperty property: Custom rdp property of HostPool.- Parameters:
customRdpProperty- the customRdpProperty value to set.- Returns:
- the HostPoolInner object itself.
-
maxSessionLimit
public Integer maxSessionLimit()
Get the maxSessionLimit property: The max session limit of HostPool.- Returns:
- the maxSessionLimit value.
-
withMaxSessionLimit
public HostPoolInner withMaxSessionLimit(Integer maxSessionLimit)
Set the maxSessionLimit property: The max session limit of HostPool.- Parameters:
maxSessionLimit- the maxSessionLimit value to set.- Returns:
- the HostPoolInner object itself.
-
loadBalancerType
public LoadBalancerType loadBalancerType()
Get the loadBalancerType property: The type of the load balancer.- Returns:
- the loadBalancerType value.
-
withLoadBalancerType
public HostPoolInner withLoadBalancerType(LoadBalancerType loadBalancerType)
Set the loadBalancerType property: The type of the load balancer.- Parameters:
loadBalancerType- the loadBalancerType value to set.- Returns:
- the HostPoolInner object itself.
-
ring
public Integer ring()
Get the ring property: The ring number of HostPool.- Returns:
- the ring value.
-
withRing
public HostPoolInner withRing(Integer ring)
Set the ring property: The ring number of HostPool.- Parameters:
ring- the ring value to set.- Returns:
- the HostPoolInner object itself.
-
validationEnvironment
public Boolean validationEnvironment()
Get the validationEnvironment property: Is validation environment.- Returns:
- the validationEnvironment value.
-
withValidationEnvironment
public HostPoolInner withValidationEnvironment(Boolean validationEnvironment)
Set the validationEnvironment property: Is validation environment.- Parameters:
validationEnvironment- the validationEnvironment value to set.- Returns:
- the HostPoolInner object itself.
-
registrationInfo
public RegistrationInfoInner registrationInfo()
Get the registrationInfo property: The registration info of HostPool.- Returns:
- the registrationInfo value.
-
withRegistrationInfo
public HostPoolInner withRegistrationInfo(RegistrationInfoInner registrationInfo)
Set the registrationInfo property: The registration info of HostPool.- Parameters:
registrationInfo- the registrationInfo value to set.- Returns:
- the HostPoolInner object itself.
-
vmTemplate
public String vmTemplate()
Get the vmTemplate property: VM template for sessionhosts configuration within hostpool.- Returns:
- the vmTemplate value.
-
withVmTemplate
public HostPoolInner withVmTemplate(String vmTemplate)
Set the vmTemplate property: VM template for sessionhosts configuration within hostpool.- Parameters:
vmTemplate- the vmTemplate value to set.- Returns:
- the HostPoolInner object itself.
-
applicationGroupReferences
public List<String> applicationGroupReferences()
Get the applicationGroupReferences property: List of applicationGroup links.- Returns:
- the applicationGroupReferences value.
-
ssoadfsAuthority
public String ssoadfsAuthority()
Get the ssoadfsAuthority property: URL to customer ADFS server for signing WVD SSO certificates.- Returns:
- the ssoadfsAuthority value.
-
withSsoadfsAuthority
public HostPoolInner withSsoadfsAuthority(String ssoadfsAuthority)
Set the ssoadfsAuthority property: URL to customer ADFS server for signing WVD SSO certificates.- Parameters:
ssoadfsAuthority- the ssoadfsAuthority value to set.- Returns:
- the HostPoolInner object itself.
-
ssoClientId
public String ssoClientId()
Get the ssoClientId property: ClientId for the registered Relying Party used to issue WVD SSO certificates.- Returns:
- the ssoClientId value.
-
withSsoClientId
public HostPoolInner withSsoClientId(String ssoClientId)
Set the ssoClientId property: ClientId for the registered Relying Party used to issue WVD SSO certificates.- Parameters:
ssoClientId- the ssoClientId value to set.- Returns:
- the HostPoolInner object itself.
-
ssoClientSecretKeyVaultPath
public String ssoClientSecretKeyVaultPath()
Get the ssoClientSecretKeyVaultPath property: Path to Azure KeyVault storing the secret used for communication to ADFS.- Returns:
- the ssoClientSecretKeyVaultPath value.
-
withSsoClientSecretKeyVaultPath
public HostPoolInner withSsoClientSecretKeyVaultPath(String ssoClientSecretKeyVaultPath)
Set the ssoClientSecretKeyVaultPath property: Path to Azure KeyVault storing the secret used for communication to ADFS.- Parameters:
ssoClientSecretKeyVaultPath- the ssoClientSecretKeyVaultPath value to set.- Returns:
- the HostPoolInner object itself.
-
ssoSecretType
public SsoSecretType ssoSecretType()
Get the ssoSecretType property: The type of single sign on Secret Type.- Returns:
- the ssoSecretType value.
-
withSsoSecretType
public HostPoolInner withSsoSecretType(SsoSecretType ssoSecretType)
Set the ssoSecretType property: The type of single sign on Secret Type.- Parameters:
ssoSecretType- the ssoSecretType value to set.- Returns:
- the HostPoolInner object itself.
-
preferredAppGroupType
public PreferredAppGroupType preferredAppGroupType()
Get the preferredAppGroupType property: The type of preferred application group type, default to Desktop Application Group.- Returns:
- the preferredAppGroupType value.
-
withPreferredAppGroupType
public HostPoolInner withPreferredAppGroupType(PreferredAppGroupType preferredAppGroupType)
Set the preferredAppGroupType property: The type of preferred application group type, default to Desktop Application Group.- Parameters:
preferredAppGroupType- the preferredAppGroupType value to set.- Returns:
- the HostPoolInner object itself.
-
startVMOnConnect
public Boolean startVMOnConnect()
Get the startVMOnConnect property: The flag to turn on/off StartVMOnConnect feature.- Returns:
- the startVMOnConnect value.
-
withStartVMOnConnect
public HostPoolInner withStartVMOnConnect(Boolean startVMOnConnect)
Set the startVMOnConnect property: The flag to turn on/off StartVMOnConnect feature.- Parameters:
startVMOnConnect- the startVMOnConnect value to set.- Returns:
- the HostPoolInner object itself.
-
migrationRequest
public MigrationRequestProperties migrationRequest()
Get the migrationRequest property: The registration info of HostPool.- Returns:
- the migrationRequest value.
-
withMigrationRequest
public HostPoolInner withMigrationRequest(MigrationRequestProperties migrationRequest)
Set the migrationRequest property: The registration info of HostPool.- Parameters:
migrationRequest- the migrationRequest value to set.- Returns:
- the HostPoolInner 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 HostPoolInner 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 HostPoolInner object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classResourceModelWithAllowedPropertySet- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-