Class CloudPC

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.CloudPC
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class CloudPC extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • CloudPC

      public CloudPC()
      Instantiates a new CloudPC and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static CloudPC 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 CloudPC
    • getAadDeviceId

      @Nullable public String getAadDeviceId()
      Gets the aadDeviceId property value. The Microsoft Entra device ID for the Cloud PC, also known as the Azure Active Directory (Azure AD) device ID, that consists of 32 characters in a GUID format. Generated on a VM joined to Microsoft Entra ID. Read-only.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name for the Cloud PC. Maximum length is 64 characters. Read-only. You can use the cloudPC: rename API to modify the Cloud PC name.
      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>>
    • getGracePeriodEndDateTime

      @Nullable public OffsetDateTime getGracePeriodEndDateTime()
      Gets the gracePeriodEndDateTime property value. The date and time when the grace period ends and reprovisioning or deprovisioning happen. Required only if the status is inGracePeriod. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getImageDisplayName

      @Nullable public String getImageDisplayName()
      Gets the imageDisplayName property value. The name of the operating system image used for the Cloud PC. Maximum length is 50 characters. Only letters (A-Z, a-z), numbers (0-9), and special characters (-,,.) are allowed for this property. The property value can't begin or end with an underscore. Read-only.
      Returns:
      a String
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The last modified date and time of the Cloud PC. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getManagedDeviceId

      @Nullable public String getManagedDeviceId()
      Gets the managedDeviceId property value. The Intune enrolled device ID for the Cloud PC that consists of 32 characters in a GUID format. The managedDeviceId property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only.
      Returns:
      a String
    • getManagedDeviceName

      @Nullable public String getManagedDeviceName()
      Gets the managedDeviceName property value. The Intune enrolled device name for the Cloud PC. The managedDeviceName property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only.
      Returns:
      a String
    • getOnPremisesConnectionName

      @Nullable public String getOnPremisesConnectionName()
      Gets the onPremisesConnectionName property value. The on-premises connection that applied during the provisioning of Cloud PCs. Read-only.
      Returns:
      a String
    • getProvisioningPolicyId

      @Nullable public String getProvisioningPolicyId()
      Gets the provisioningPolicyId property value. The provisioning policy ID for the Cloud PC that consists of 32 characters in a GUID format. A policy defines the type of Cloud PC the user wants to create. Read-only.
      Returns:
      a String
    • getProvisioningPolicyName

      @Nullable public String getProvisioningPolicyName()
      Gets the provisioningPolicyName property value. The provisioning policy that applied during the provisioning of Cloud PCs. Maximum length is 120 characters. Read-only.
      Returns:
      a String
    • getProvisioningType

      @Nullable public CloudPcProvisioningType getProvisioningType()
      Gets the provisioningType property value. The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. The default value is dedicated.
      Returns:
      a CloudPcProvisioningType
    • getServicePlanId

      @Nullable public String getServicePlanId()
      Gets the servicePlanId property value. The service plan ID for the Cloud PC that consists of 32 characters in a GUID format. For more information about service plans, see Product names and service plan identifiers for licensing. Read-only.
      Returns:
      a String
    • getServicePlanName

      @Nullable public String getServicePlanName()
      Gets the servicePlanName property value. The service plan name for the customer-facing Cloud PC entity. Read-only.
      Returns:
      a String
    • getUserPrincipalName

      @Nullable public String getUserPrincipalName()
      Gets the userPrincipalName property value. The user principal name (UPN) of the user assigned to the Cloud PC. Maximum length is 113 characters. For more information on username policies, see Password policies and account restrictions in Microsoft Entra ID. Read-only.
      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
    • setAadDeviceId

      public void setAadDeviceId(@Nullable String value)
      Sets the aadDeviceId property value. The Microsoft Entra device ID for the Cloud PC, also known as the Azure Active Directory (Azure AD) device ID, that consists of 32 characters in a GUID format. Generated on a VM joined to Microsoft Entra ID. Read-only.
      Parameters:
      value - Value to set for the aadDeviceId property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name for the Cloud PC. Maximum length is 64 characters. Read-only. You can use the cloudPC: rename API to modify the Cloud PC name.
      Parameters:
      value - Value to set for the displayName property.
    • setGracePeriodEndDateTime

      public void setGracePeriodEndDateTime(@Nullable OffsetDateTime value)
      Sets the gracePeriodEndDateTime property value. The date and time when the grace period ends and reprovisioning or deprovisioning happen. Required only if the status is inGracePeriod. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the gracePeriodEndDateTime property.
    • setImageDisplayName

      public void setImageDisplayName(@Nullable String value)
      Sets the imageDisplayName property value. The name of the operating system image used for the Cloud PC. Maximum length is 50 characters. Only letters (A-Z, a-z), numbers (0-9), and special characters (-,,.) are allowed for this property. The property value can't begin or end with an underscore. Read-only.
      Parameters:
      value - Value to set for the imageDisplayName property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. The last modified date and time of the Cloud PC. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setManagedDeviceId

      public void setManagedDeviceId(@Nullable String value)
      Sets the managedDeviceId property value. The Intune enrolled device ID for the Cloud PC that consists of 32 characters in a GUID format. The managedDeviceId property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only.
      Parameters:
      value - Value to set for the managedDeviceId property.
    • setManagedDeviceName

      public void setManagedDeviceName(@Nullable String value)
      Sets the managedDeviceName property value. The Intune enrolled device name for the Cloud PC. The managedDeviceName property of Windows 365 Business Cloud PCs is always null as Windows 365 Business Cloud PCs aren't Intune-enrolled automatically by Windows 365. Read-only.
      Parameters:
      value - Value to set for the managedDeviceName property.
    • setOnPremisesConnectionName

      public void setOnPremisesConnectionName(@Nullable String value)
      Sets the onPremisesConnectionName property value. The on-premises connection that applied during the provisioning of Cloud PCs. Read-only.
      Parameters:
      value - Value to set for the onPremisesConnectionName property.
    • setProvisioningPolicyId

      public void setProvisioningPolicyId(@Nullable String value)
      Sets the provisioningPolicyId property value. The provisioning policy ID for the Cloud PC that consists of 32 characters in a GUID format. A policy defines the type of Cloud PC the user wants to create. Read-only.
      Parameters:
      value - Value to set for the provisioningPolicyId property.
    • setProvisioningPolicyName

      public void setProvisioningPolicyName(@Nullable String value)
      Sets the provisioningPolicyName property value. The provisioning policy that applied during the provisioning of Cloud PCs. Maximum length is 120 characters. Read-only.
      Parameters:
      value - Value to set for the provisioningPolicyName property.
    • setProvisioningType

      public void setProvisioningType(@Nullable CloudPcProvisioningType value)
      Sets the provisioningType property value. The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. The default value is dedicated.
      Parameters:
      value - Value to set for the provisioningType property.
    • setServicePlanId

      public void setServicePlanId(@Nullable String value)
      Sets the servicePlanId property value. The service plan ID for the Cloud PC that consists of 32 characters in a GUID format. For more information about service plans, see Product names and service plan identifiers for licensing. Read-only.
      Parameters:
      value - Value to set for the servicePlanId property.
    • setServicePlanName

      public void setServicePlanName(@Nullable String value)
      Sets the servicePlanName property value. The service plan name for the customer-facing Cloud PC entity. Read-only.
      Parameters:
      value - Value to set for the servicePlanName property.
    • setUserPrincipalName

      public void setUserPrincipalName(@Nullable String value)
      Sets the userPrincipalName property value. The user principal name (UPN) of the user assigned to the Cloud PC. Maximum length is 113 characters. For more information on username policies, see Password policies and account restrictions in Microsoft Entra ID. Read-only.
      Parameters:
      value - Value to set for the userPrincipalName property.