Package com.microsoft.graph.models
Class CloudPcOnPremisesConnection
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.CloudPcOnPremisesConnection
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class CloudPcOnPremisesConnection
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudPcOnPremisesConnectioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the adDomainName property value.Gets the adDomainPassword property value.Gets the adDomainUsername property value.Gets the alternateResourceUrl property value.Gets the connectionType property value.Gets the displayName property value.The deserialization information for the current modelGets the healthCheckPaused property value.Gets the healthCheckStatus property value.Gets the healthCheckStatusDetail property value.getInUse()Gets the inUse property value.Gets the inUseByCloudPc property value.Gets the organizationalUnit property value.Gets the resourceGroupId property value.Gets the scopeIds property value.Gets the subnetId property value.Gets the subscriptionId property value.Gets the subscriptionName property value.Gets the virtualNetworkId property value.Gets the virtualNetworkLocation property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdDomainName(String value) Sets the adDomainName property value.voidsetAdDomainPassword(String value) Sets the adDomainPassword property value.voidsetAdDomainUsername(String value) Sets the adDomainUsername property value.voidsetAlternateResourceUrl(String value) Sets the alternateResourceUrl property value.voidSets the connectionType property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetHealthCheckPaused(Boolean value) Sets the healthCheckPaused property value.voidSets the healthCheckStatus property value.voidSets the healthCheckStatusDetail property value.voidSets the inUse property value.voidsetInUseByCloudPc(Boolean value) Sets the inUseByCloudPc property value.voidsetOrganizationalUnit(String value) Sets the organizationalUnit property value.voidsetResourceGroupId(String value) Sets the resourceGroupId property value.voidsetScopeIds(List<String> value) Sets the scopeIds property value.voidsetSubnetId(String value) Sets the subnetId property value.voidsetSubscriptionId(String value) Sets the subscriptionId property value.voidsetSubscriptionName(String value) Sets the subscriptionName property value.voidsetVirtualNetworkId(String value) Sets the virtualNetworkId property value.voidsetVirtualNetworkLocation(String value) Sets the virtualNetworkLocation property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
CloudPcOnPremisesConnection
public CloudPcOnPremisesConnection()Instantiates a newCloudPcOnPremisesConnectionand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static CloudPcOnPremisesConnection createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
CloudPcOnPremisesConnection
-
getAdDomainName
Gets the adDomainName property value. The fully qualified domain name (FQDN) of the Active Directory domain you want to join. Maximum length is 255. Optional.- Returns:
- a
String
-
getAdDomainPassword
Gets the adDomainPassword property value. The password associated with the username of an Active Directory account (adDomainUsername).- Returns:
- a
String
-
getAdDomainUsername
Gets the adDomainUsername property value. The username of an Active Directory account (user or service account) that has permission to create computer objects in Active Directory. Required format: admin@contoso.com. Optional.- Returns:
- a
String
-
getAlternateResourceUrl
Gets the alternateResourceUrl property value. The interface URL of the partner service's resource that links to this Azure network connection. Requires $select to retrieve.- Returns:
- a
String
-
getConnectionType
Gets the connectionType property value. Specifies how the provisioned Cloud PC joins to Microsoft Entra. It includes different types, one is Microsoft Entra ID join, which means there's no on-premises Active Directory (AD) in the current tenant, and the Cloud PC device is joined by Microsoft Entra. Another one is hybridAzureADJoin, which means there's also an on-premises Active Directory (AD) in the current tenant and the Cloud PC device joins to on-premises Active Directory (AD) and Microsoft Entra. The type also determines which types of users can be assigned and can sign into a Cloud PC. The azureADJoin type indicates that cloud-only and hybrid users can be assigned and signed into the Cloud PC. hybridAzureADJoin indicates only hybrid users can be assigned and signed into the Cloud PC. The default value is hybridAzureADJoin.- Returns:
- a
CloudPcOnPremisesConnectionType
-
getDisplayName
Gets the displayName property value. The display name for the Azure network connection.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHealthCheckPaused
Gets the healthCheckPaused property value. Indicates whether regular health checks on the network or domain configuration are paused or active. false if the regular health checks on the network or domain configuration are currently active. true if the checks are paused. If you perform a create or update operation on a onPremisesNetworkConnection resource, this value is set to false for four weeks. If you retry a health check on network or domain configuration, this value is set to false for two weeks. If the onPremisesNetworkConnection resource is attached in a provisioningPolicy or used by a Cloud PC in the past four weeks, healthCheckPaused is set to false. Read-only. Default is false.- Returns:
- a
Boolean
-
getHealthCheckStatus
Gets the healthCheckStatus property value. The healthCheckStatus property- Returns:
- a
CloudPcOnPremisesConnectionStatus
-
getHealthCheckStatusDetail
Gets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Read-only. Requires $select to retrieve. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only.- Returns:
- a
CloudPcOnPremisesConnectionStatusDetail
-
getInUse
Gets the inUse property value. When true, the Azure network connection is in use. When false, the connection isn't in use. You can't delete a connection thats in use. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only.- Returns:
- a
Boolean
-
getInUseByCloudPc
Gets the inUseByCloudPc property value. Indicates whether a Cloud PC is using this on-premises network connection. true if at least one Cloud PC is using it. Otherwise, false. Read-only. Default is false.- Returns:
- a
Boolean
-
getOrganizationalUnit
Gets the organizationalUnit property value. The organizational unit (OU) in which the computer account is created. If left null, the OU configured as the default (a well-known computer object container) in the tenant's Active Directory domain (OU) is used. Optional.- Returns:
- a
String
-
getResourceGroupId
Gets the resourceGroupId property value. The unique identifier of the target resource group used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}'- Returns:
- a
String
-
getScopeIds
Gets the scopeIds property value. The scope IDs of the corresponding permission. Currently, it's the Intune scope tag ID. -
getSubnetId
Gets the subnetId property value. The unique identifier of the target subnet used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkId}/subnets/{subnetName}'- Returns:
- a
String
-
getSubscriptionId
Gets the subscriptionId property value. The unique identifier of the Azure subscription associated with the tenant.- Returns:
- a
String
-
getSubscriptionName
Gets the subscriptionName property value. The name of the Azure subscription is used to create an Azure network connection. Read-only.- Returns:
- a
String
-
getVirtualNetworkId
Gets the virtualNetworkId property value. The unique identifier of the target virtual network used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'- Returns:
- a
String
-
getVirtualNetworkLocation
Gets the virtualNetworkLocation property value. Indicates the resource location of the target virtual network. For example, the location can be eastus2, westeurope, etc. Read-only (computed value).- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAdDomainName
Sets the adDomainName property value. The fully qualified domain name (FQDN) of the Active Directory domain you want to join. Maximum length is 255. Optional.- Parameters:
value- Value to set for the adDomainName property.
-
setAdDomainPassword
Sets the adDomainPassword property value. The password associated with the username of an Active Directory account (adDomainUsername).- Parameters:
value- Value to set for the adDomainPassword property.
-
setAdDomainUsername
Sets the adDomainUsername property value. The username of an Active Directory account (user or service account) that has permission to create computer objects in Active Directory. Required format: admin@contoso.com. Optional.- Parameters:
value- Value to set for the adDomainUsername property.
-
setAlternateResourceUrl
Sets the alternateResourceUrl property value. The interface URL of the partner service's resource that links to this Azure network connection. Requires $select to retrieve.- Parameters:
value- Value to set for the alternateResourceUrl property.
-
setConnectionType
Sets the connectionType property value. Specifies how the provisioned Cloud PC joins to Microsoft Entra. It includes different types, one is Microsoft Entra ID join, which means there's no on-premises Active Directory (AD) in the current tenant, and the Cloud PC device is joined by Microsoft Entra. Another one is hybridAzureADJoin, which means there's also an on-premises Active Directory (AD) in the current tenant and the Cloud PC device joins to on-premises Active Directory (AD) and Microsoft Entra. The type also determines which types of users can be assigned and can sign into a Cloud PC. The azureADJoin type indicates that cloud-only and hybrid users can be assigned and signed into the Cloud PC. hybridAzureADJoin indicates only hybrid users can be assigned and signed into the Cloud PC. The default value is hybridAzureADJoin.- Parameters:
value- Value to set for the connectionType property.
-
setDisplayName
Sets the displayName property value. The display name for the Azure network connection.- Parameters:
value- Value to set for the displayName property.
-
setHealthCheckPaused
Sets the healthCheckPaused property value. Indicates whether regular health checks on the network or domain configuration are paused or active. false if the regular health checks on the network or domain configuration are currently active. true if the checks are paused. If you perform a create or update operation on a onPremisesNetworkConnection resource, this value is set to false for four weeks. If you retry a health check on network or domain configuration, this value is set to false for two weeks. If the onPremisesNetworkConnection resource is attached in a provisioningPolicy or used by a Cloud PC in the past four weeks, healthCheckPaused is set to false. Read-only. Default is false.- Parameters:
value- Value to set for the healthCheckPaused property.
-
setHealthCheckStatus
Sets the healthCheckStatus property value. The healthCheckStatus property- Parameters:
value- Value to set for the healthCheckStatus property.
-
setHealthCheckStatusDetail
Sets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Read-only. Requires $select to retrieve. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only.- Parameters:
value- Value to set for the healthCheckStatusDetail property.
-
setInUse
Sets the inUse property value. When true, the Azure network connection is in use. When false, the connection isn't in use. You can't delete a connection thats in use. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetail. Read-only.- Parameters:
value- Value to set for the inUse property.
-
setInUseByCloudPc
Sets the inUseByCloudPc property value. Indicates whether a Cloud PC is using this on-premises network connection. true if at least one Cloud PC is using it. Otherwise, false. Read-only. Default is false.- Parameters:
value- Value to set for the inUseByCloudPc property.
-
setOrganizationalUnit
Sets the organizationalUnit property value. The organizational unit (OU) in which the computer account is created. If left null, the OU configured as the default (a well-known computer object container) in the tenant's Active Directory domain (OU) is used. Optional.- Parameters:
value- Value to set for the organizationalUnit property.
-
setResourceGroupId
Sets the resourceGroupId property value. The unique identifier of the target resource group used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}'- Parameters:
value- Value to set for the resourceGroupId property.
-
setScopeIds
Sets the scopeIds property value. The scope IDs of the corresponding permission. Currently, it's the Intune scope tag ID.- Parameters:
value- Value to set for the scopeIds property.
-
setSubnetId
Sets the subnetId property value. The unique identifier of the target subnet used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkId}/subnets/{subnetName}'- Parameters:
value- Value to set for the subnetId property.
-
setSubscriptionId
Sets the subscriptionId property value. The unique identifier of the Azure subscription associated with the tenant.- Parameters:
value- Value to set for the subscriptionId property.
-
setSubscriptionName
Sets the subscriptionName property value. The name of the Azure subscription is used to create an Azure network connection. Read-only.- Parameters:
value- Value to set for the subscriptionName property.
-
setVirtualNetworkId
Sets the virtualNetworkId property value. The unique identifier of the target virtual network used associated with the on-premises network connectivity for Cloud PCs. Required format: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'- Parameters:
value- Value to set for the virtualNetworkId property.
-
setVirtualNetworkLocation
Sets the virtualNetworkLocation property value. Indicates the resource location of the target virtual network. For example, the location can be eastus2, westeurope, etc. Read-only (computed value).- Parameters:
value- Value to set for the virtualNetworkLocation property.
-