Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudPcProvisioningPolicy
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the alternateResourceUrl property value.Gets the assignments property value.Gets the autopatch property value.Gets the cloudPcGroupDisplayName property value.Gets the cloudPcNamingTemplate property value.Gets the description property value.Gets the displayName property value.Gets the domainJoinConfigurations property value.Gets the enableSingleSignOn property value.The deserialization information for the current modelGets the gracePeriodInHours property value.Gets the imageDisplayName property value.Gets the imageId property value.Gets the imageType property value.Gets the localAdminEnabled property value.Gets the microsoftManagedDesktop property value.Gets the provisioningType property value.Gets the windowsSetting property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAlternateResourceUrl
(String value) Sets the alternateResourceUrl property value.void
Sets the assignments property value.void
Sets the autopatch property value.void
setCloudPcGroupDisplayName
(String value) Sets the cloudPcGroupDisplayName property value.void
setCloudPcNamingTemplate
(String value) Sets the cloudPcNamingTemplate property value.void
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the domainJoinConfigurations property value.void
setEnableSingleSignOn
(Boolean value) Sets the enableSingleSignOn property value.void
setGracePeriodInHours
(Integer value) Sets the gracePeriodInHours property value.void
setImageDisplayName
(String value) Sets the imageDisplayName property value.void
setImageId
(String value) Sets the imageId property value.void
Sets the imageType property value.void
setLocalAdminEnabled
(Boolean value) Sets the localAdminEnabled property value.void
Sets the microsoftManagedDesktop property value.void
Sets the provisioningType property value.void
Sets the windowsSetting property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
CloudPcProvisioningPolicy
public CloudPcProvisioningPolicy()Instantiates a newCloudPcProvisioningPolicy
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
Gets the alternateResourceUrl property value. The URL of the alternate resource that links to this provisioning policy. Read-only.- Returns:
- a
String
-
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
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
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
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
Gets the description property value. The provisioning policy description. Supports $filter, $select, and $orderBy.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The display name for the provisioning policy.- Returns:
- a
String
-
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
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGracePeriodInHours
Gets the gracePeriodInHours property value. The number of hours to wait before reprovisioning/deprovisioning happens. Read-only.- Returns:
- a
Integer
-
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
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
Gets the imageType property value. The imageType property- Returns:
- a
CloudPcProvisioningPolicyImageType
-
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
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
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
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 -
setAlternateResourceUrl
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
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
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
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
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
Sets the description property value. The provisioning policy description. Supports $filter, $select, and $orderBy.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. The display name for the provisioning policy.- Parameters:
value
- Value to set for the displayName property.
-
setDomainJoinConfigurations
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
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
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
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
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
Sets the imageType property value. The imageType property- Parameters:
value
- Value to set for the imageType property.
-
setLocalAdminEnabled
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
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
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
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.
-