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
  • Constructor Details

    • CloudPcOnPremisesConnection

      public CloudPcOnPremisesConnection()
      Instantiates a new CloudPcOnPremisesConnection and 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

      @Nullable public String 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

      @Nullable public String getAdDomainPassword()
      Gets the adDomainPassword property value. The password associated with the username of an Active Directory account (adDomainUsername).
      Returns:
      a String
    • getAdDomainUsername

      @Nullable public 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: [email protected]. Optional.
      Returns:
      a String
    • getAlternateResourceUrl

      @Nullable public String getAlternateResourceUrl()
      Gets the alternateResourceUrl property value. The interface URL of the partner service's resource that links to this Azure network connection. Returned only on $select.
      Returns:
      a String
    • getConnectionType

      @Nullable public CloudPcOnPremisesConnectionType 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

      @Nullable public String 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:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHealthCheckStatus

      @Nullable public CloudPcOnPremisesConnectionStatus getHealthCheckStatus()
      Gets the healthCheckStatus property value. The healthCheckStatus property
      Returns:
      a CloudPcOnPremisesConnectionStatus
    • getHealthCheckStatusDetail

      @Nullable public CloudPcOnPremisesConnectionStatusDetail getHealthCheckStatusDetail()
      Gets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Read-only. 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 CloudPcOnPremisesConnectionStatusDetail
    • getInUse

      @Nullable public Boolean 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
    • getOrganizationalUnit

      @Nullable public String 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

      @Nullable public 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
    • getSubnetId

      @Nullable public String 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

      @Nullable public String getSubscriptionId()
      Gets the subscriptionId property value. The unique identifier of the Azure subscription associated with the tenant.
      Returns:
      a String
    • getSubscriptionName

      @Nullable public 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

      @Nullable public 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

      @Nullable public 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdDomainName

      public void setAdDomainName(@Nullable String value)
      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

      public void setAdDomainPassword(@Nullable String value)
      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

      public void setAdDomainUsername(@Nullable String value)
      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: [email protected]. Optional.
      Parameters:
      value - Value to set for the adDomainUsername property.
    • setAlternateResourceUrl

      public void setAlternateResourceUrl(@Nullable String value)
      Sets the alternateResourceUrl property value. The interface URL of the partner service's resource that links to this Azure network connection. Returned only on $select.
      Parameters:
      value - Value to set for the alternateResourceUrl property.
    • setConnectionType

      public void setConnectionType(@Nullable CloudPcOnPremisesConnectionType value)
      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

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name for the Azure network connection.
      Parameters:
      value - Value to set for the displayName property.
    • setHealthCheckStatus

      public void setHealthCheckStatus(@Nullable CloudPcOnPremisesConnectionStatus value)
      Sets the healthCheckStatus property value. The healthCheckStatus property
      Parameters:
      value - Value to set for the healthCheckStatus property.
    • setHealthCheckStatusDetail

      public void setHealthCheckStatusDetail(@Nullable CloudPcOnPremisesConnectionStatusDetail value)
      Sets the healthCheckStatusDetail property value. Indicates the results of health checks performed on the on-premises connection. Read-only. 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 healthCheckStatusDetail property.
    • setInUse

      public void setInUse(@Nullable Boolean value)
      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.
    • setOrganizationalUnit

      public void setOrganizationalUnit(@Nullable String value)
      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

      public void setResourceGroupId(@Nullable String value)
      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.
    • setSubnetId

      public void setSubnetId(@Nullable String value)
      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

      public void setSubscriptionId(@Nullable String value)
      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

      public void setSubscriptionName(@Nullable String value)
      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

      public void setVirtualNetworkId(@Nullable String value)
      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

      public void setVirtualNetworkLocation(@Nullable String value)
      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.