Class CloudPcProvisioningPolicy

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

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

    • CloudPcProvisioningPolicy

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

    • createFromDiscriminatorValue

      @Nonnull public static CloudPcProvisioningPolicy 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 CloudPcProvisioningPolicy
    • getAlternateResourceUrl

      @Nullable public String getAlternateResourceUrl()
      Gets the alternateResourceUrl property value. The URL of the alternate resource that links to this provisioning policy. Read-only.
      Returns:
      a String
    • getAssignments

      @Nullable public List<CloudPcProvisioningPolicyAssignment> getAssignments()
      Gets the assignments property value. A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy.
      Returns:
      a List<CloudPcProvisioningPolicyAssignment>
    • getAutopatch

      @Nullable public CloudPcProvisioningPolicyAutopatch getAutopatch()
      Gets the autopatch property value. Indicates the Windows Autopatch settings for Cloud PCs using this provisioning policy. The settings take effect when the tenant enrolls in Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. Supports $select.
      Returns:
      a CloudPcProvisioningPolicyAutopatch
    • getCloudPcGroupDisplayName

      @Nullable public String getCloudPcGroupDisplayName()
      Gets the cloudPcGroupDisplayName property value. The display name of the Cloud PC group that the Cloud PCs reside in. Read-only.
      Returns:
      a String
    • getCloudPcNamingTemplate

      @Nullable public String getCloudPcNamingTemplate()
      Gets the cloudPcNamingTemplate property value. The template used to name Cloud PCs provisioned using this policy. The template can contain custom text and replacement tokens, including %USERNAME:x% and %RAND:x%, which represent the user's name and a randomly generated number, respectively. For example, CPC-%USERNAME:4%-%RAND:5% means that the name of the Cloud PC starts with CPC-, followed by a four-character username, a - character, and then five random characters. The total length of the text generated by the template can't exceed 15 characters. Supports $filter, $select, and $orderby.
      Returns:
      a String
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. The provisioning policy description. Supports $filter, $select, and $orderBy.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name for the provisioning policy.
      Returns:
      a String
    • getDomainJoinConfigurations

      @Nullable public List<CloudPcDomainJoinConfiguration> getDomainJoinConfigurations()
      Gets the domainJoinConfigurations property value. Specifies a list ordered by priority on how Cloud PCs join Microsoft Entra ID (Azure AD). Supports $select.
      Returns:
      a List<CloudPcDomainJoinConfiguration>
    • getEnableSingleSignOn

      @Nullable public Boolean getEnableSingleSignOn()
      Gets the enableSingleSignOn property value. True if the provisioned Cloud PC can be accessed by single sign-on. False indicates that the provisioned Cloud PC doesn't support this feature. The default value is false. Windows 365 users can use single sign-on to authenticate to Microsoft Entra ID with passwordless options (for example, FIDO keys) to access their Cloud PC. Optional.
      Returns:
      a Boolean
    • 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>>
    • getGracePeriodInHours

      @Nullable public Integer getGracePeriodInHours()
      Gets the gracePeriodInHours property value. The number of hours to wait before reprovisioning/deprovisioning happens. Read-only.
      Returns:
      a Integer
    • getImageDisplayName

      @Nullable public String getImageDisplayName()
      Gets the imageDisplayName property value. The display name of the operating system image that is used for provisioning. For example, Windows 11 Preview + Microsoft 365 Apps 23H2 23H2. Supports $filter, $select, and $orderBy.
      Returns:
      a String
    • getImageId

      @Nullable public String getImageId()
      Gets the imageId property value. The unique identifier that represents an operating system image that is used for provisioning new Cloud PCs. The format for a gallery type image is: {publisherNameofferNameskuName}. Supported values for each of the parameters are:publisher: Microsoftwindowsdesktop offer: windows-ent-cpc sku: 21h1-ent-cpc-m365, 21h1-ent-cpc-os, 20h2-ent-cpc-m365, 20h2-ent-cpc-os, 20h1-ent-cpc-m365, 20h1-ent-cpc-os, 19h2-ent-cpc-m365, and 19h2-ent-cpc-os Supports $filter, $select, and $orderBy.
      Returns:
      a String
    • getImageType

      @Nullable public CloudPcProvisioningPolicyImageType getImageType()
      Gets the imageType property value. The imageType property
      Returns:
      a CloudPcProvisioningPolicyImageType
    • getLocalAdminEnabled

      @Nullable public Boolean getLocalAdminEnabled()
      Gets the localAdminEnabled property value. When true, the local admin is enabled for Cloud PCs; false indicates that the local admin isn't enabled for Cloud PCs. The default value is false. Supports $filter, $select, and $orderBy.
      Returns:
      a Boolean
    • getMicrosoftManagedDesktop

      @Nullable public MicrosoftManagedDesktop getMicrosoftManagedDesktop()
      Gets the microsoftManagedDesktop property value. The specific settings to microsoftManagedDesktop that enables Microsoft Managed Desktop customers to get device managed experience for Cloud PC. To enable microsoftManagedDesktop to provide more value, an admin needs to specify certain settings in it. Supports $filter, $select, and $orderBy.
      Returns:
      a MicrosoftManagedDesktop
    • getProvisioningType

      @Nullable public CloudPcProvisioningType getProvisioningType()
      Gets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs using this policy. By default, the license type is dedicated if the provisioningType isn't specified when you create the cloudPcProvisioningPolicy. You can't change this property after the cloudPcProvisioningPolicy was created. Possible values are: dedicated, shared, unknownFutureValue.
      Returns:
      a CloudPcProvisioningType
    • getWindowsSetting

      @Nullable public CloudPcWindowsSetting getWindowsSetting()
      Gets the windowsSetting property value. Indicates a specific Windows setting to configure during the creation of Cloud PCs for this provisioning policy. Supports $select.
      Returns:
      a CloudPcWindowsSetting
    • 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
    • setAlternateResourceUrl

      public void setAlternateResourceUrl(@Nullable String value)
      Sets the alternateResourceUrl property value. The URL of the alternate resource that links to this provisioning policy. Read-only.
      Parameters:
      value - Value to set for the alternateResourceUrl property.
    • setAssignments

      public void setAssignments(@Nullable List<CloudPcProvisioningPolicyAssignment> value)
      Sets the assignments property value. A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy.
      Parameters:
      value - Value to set for the assignments property.
    • setAutopatch

      public void setAutopatch(@Nullable CloudPcProvisioningPolicyAutopatch value)
      Sets the autopatch property value. Indicates the Windows Autopatch settings for Cloud PCs using this provisioning policy. The settings take effect when the tenant enrolls in Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. Supports $select.
      Parameters:
      value - Value to set for the autopatch property.
    • setCloudPcGroupDisplayName

      public void setCloudPcGroupDisplayName(@Nullable String value)
      Sets the cloudPcGroupDisplayName property value. The display name of the Cloud PC group that the Cloud PCs reside in. Read-only.
      Parameters:
      value - Value to set for the cloudPcGroupDisplayName property.
    • setCloudPcNamingTemplate

      public void setCloudPcNamingTemplate(@Nullable String value)
      Sets the cloudPcNamingTemplate property value. The template used to name Cloud PCs provisioned using this policy. The template can contain custom text and replacement tokens, including %USERNAME:x% and %RAND:x%, which represent the user's name and a randomly generated number, respectively. For example, CPC-%USERNAME:4%-%RAND:5% means that the name of the Cloud PC starts with CPC-, followed by a four-character username, a - character, and then five random characters. The total length of the text generated by the template can't exceed 15 characters. Supports $filter, $select, and $orderby.
      Parameters:
      value - Value to set for the cloudPcNamingTemplate property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. The provisioning policy description. Supports $filter, $select, and $orderBy.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name for the provisioning policy.
      Parameters:
      value - Value to set for the displayName property.
    • setDomainJoinConfigurations

      public void setDomainJoinConfigurations(@Nullable List<CloudPcDomainJoinConfiguration> value)
      Sets the domainJoinConfigurations property value. Specifies a list ordered by priority on how Cloud PCs join Microsoft Entra ID (Azure AD). Supports $select.
      Parameters:
      value - Value to set for the domainJoinConfigurations property.
    • setEnableSingleSignOn

      public void setEnableSingleSignOn(@Nullable Boolean value)
      Sets the enableSingleSignOn property value. True if the provisioned Cloud PC can be accessed by single sign-on. False indicates that the provisioned Cloud PC doesn't support this feature. The default value is false. Windows 365 users can use single sign-on to authenticate to Microsoft Entra ID with passwordless options (for example, FIDO keys) to access their Cloud PC. Optional.
      Parameters:
      value - Value to set for the enableSingleSignOn property.
    • setGracePeriodInHours

      public void setGracePeriodInHours(@Nullable Integer value)
      Sets the gracePeriodInHours property value. The number of hours to wait before reprovisioning/deprovisioning happens. Read-only.
      Parameters:
      value - Value to set for the gracePeriodInHours property.
    • setImageDisplayName

      public void setImageDisplayName(@Nullable String value)
      Sets the imageDisplayName property value. The display name of the operating system image that is used for provisioning. For example, Windows 11 Preview + Microsoft 365 Apps 23H2 23H2. Supports $filter, $select, and $orderBy.
      Parameters:
      value - Value to set for the imageDisplayName property.
    • setImageId

      public void setImageId(@Nullable String value)
      Sets the imageId property value. The unique identifier that represents an operating system image that is used for provisioning new Cloud PCs. The format for a gallery type image is: {publisherNameofferNameskuName}. Supported values for each of the parameters are:publisher: Microsoftwindowsdesktop offer: windows-ent-cpc sku: 21h1-ent-cpc-m365, 21h1-ent-cpc-os, 20h2-ent-cpc-m365, 20h2-ent-cpc-os, 20h1-ent-cpc-m365, 20h1-ent-cpc-os, 19h2-ent-cpc-m365, and 19h2-ent-cpc-os Supports $filter, $select, and $orderBy.
      Parameters:
      value - Value to set for the imageId property.
    • setImageType

      public void setImageType(@Nullable CloudPcProvisioningPolicyImageType value)
      Sets the imageType property value. The imageType property
      Parameters:
      value - Value to set for the imageType property.
    • setLocalAdminEnabled

      public void setLocalAdminEnabled(@Nullable Boolean value)
      Sets the localAdminEnabled property value. When true, the local admin is enabled for Cloud PCs; false indicates that the local admin isn't enabled for Cloud PCs. The default value is false. Supports $filter, $select, and $orderBy.
      Parameters:
      value - Value to set for the localAdminEnabled property.
    • setMicrosoftManagedDesktop

      public void setMicrosoftManagedDesktop(@Nullable MicrosoftManagedDesktop value)
      Sets the microsoftManagedDesktop property value. The specific settings to microsoftManagedDesktop that enables Microsoft Managed Desktop customers to get device managed experience for Cloud PC. To enable microsoftManagedDesktop to provide more value, an admin needs to specify certain settings in it. Supports $filter, $select, and $orderBy.
      Parameters:
      value - Value to set for the microsoftManagedDesktop property.
    • setProvisioningType

      public void setProvisioningType(@Nullable CloudPcProvisioningType value)
      Sets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs using this policy. By default, the license type is dedicated if the provisioningType isn't specified when you create the cloudPcProvisioningPolicy. You can't change this property after the cloudPcProvisioningPolicy was created. Possible values are: dedicated, shared, unknownFutureValue.
      Parameters:
      value - Value to set for the provisioningType property.
    • setWindowsSetting

      public void setWindowsSetting(@Nullable CloudPcWindowsSetting value)
      Sets the windowsSetting property value. Indicates a specific Windows setting to configure during the creation of Cloud PCs for this provisioning policy. Supports $select.
      Parameters:
      value - Value to set for the windowsSetting property.