Class ScalingPlanInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet
com.azure.resourcemanager.desktopvirtualization.fluent.models.ScalingPlanInner
ScalingPlan
Represents a scaling plan definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of scaling plan.Get the exclusionTag property: Exclusion tag for scaling plan.Get the friendlyName property: User friendly name of scaling plan.Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.Get the hostPoolType property: HostPool type for desktop.objectId()Get the objectId property: ObjectId of scaling plan.Get the schedules property: List of ScalingPlanPooledSchedule definitions.com.azure.core.management.SystemDataGet the systemData property: Metadata pertaining to creation and last modification of the resource.timeZone()Get the timeZone property: Timezone of the scaling plan.voidvalidate()Validates the instance.withDescription(String description) Set the description property: Description of scaling plan.withExclusionTag(String exclusionTag) Set the exclusionTag property: Exclusion tag for scaling plan.withFriendlyName(String friendlyName) Set the friendlyName property: User friendly name of scaling plan.withHostPoolReferences(List<ScalingHostPoolReference> hostPoolReferences) Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.withHostPoolType(ScalingHostPoolType hostPoolType) Set the hostPoolType property: HostPool type for desktop.Set the identity property: The identity property.Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.withLocation(String location) withManagedBy(String managedBy) Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.Set the plan property: The plan property.withSchedules(List<ScalingSchedule> schedules) Set the schedules property: List of ScalingPlanPooledSchedule definitions.Set the sku property: The sku property.withTimeZone(String timeZone) Set the timeZone property: Timezone of the scaling plan.Methods inherited from class com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet
etag, identity, kind, managedBy, plan, skuMethods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ScalingPlanInner
public ScalingPlanInner()Creates an instance of ScalingPlanInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
withManagedBy
Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.- Overrides:
withManagedByin classResourceModelWithAllowedPropertySet- Parameters:
managedBy- the managedBy value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withKind
Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.- Overrides:
withKindin classResourceModelWithAllowedPropertySet- Parameters:
kind- the kind value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withIdentity
Set the identity property: The identity property.- Overrides:
withIdentityin classResourceModelWithAllowedPropertySet- Parameters:
identity- the identity value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withSku
Set the sku property: The sku property.- Overrides:
withSkuin classResourceModelWithAllowedPropertySet- Parameters:
sku- the sku value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withPlan
Set the plan property: The plan property.- Overrides:
withPlanin classResourceModelWithAllowedPropertySet- Parameters:
plan- the plan value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withLocation
- Overrides:
withLocationin classResourceModelWithAllowedPropertySet
-
withTags
- Overrides:
withTagsin classResourceModelWithAllowedPropertySet
-
objectId
Get the objectId property: ObjectId of scaling plan. (internal use).- Returns:
- the objectId value.
-
description
Get the description property: Description of scaling plan.- Returns:
- the description value.
-
withDescription
Set the description property: Description of scaling plan.- Parameters:
description- the description value to set.- Returns:
- the ScalingPlanInner object itself.
-
friendlyName
Get the friendlyName property: User friendly name of scaling plan.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: User friendly name of scaling plan.- Parameters:
friendlyName- the friendlyName value to set.- Returns:
- the ScalingPlanInner object itself.
-
timeZone
Get the timeZone property: Timezone of the scaling plan.- Returns:
- the timeZone value.
-
withTimeZone
Set the timeZone property: Timezone of the scaling plan.- Parameters:
timeZone- the timeZone value to set.- Returns:
- the ScalingPlanInner object itself.
-
hostPoolType
Get the hostPoolType property: HostPool type for desktop.- Returns:
- the hostPoolType value.
-
withHostPoolType
Set the hostPoolType property: HostPool type for desktop.- Parameters:
hostPoolType- the hostPoolType value to set.- Returns:
- the ScalingPlanInner object itself.
-
exclusionTag
Get the exclusionTag property: Exclusion tag for scaling plan.- Returns:
- the exclusionTag value.
-
withExclusionTag
Set the exclusionTag property: Exclusion tag for scaling plan.- Parameters:
exclusionTag- the exclusionTag value to set.- Returns:
- the ScalingPlanInner object itself.
-
schedules
Get the schedules property: List of ScalingPlanPooledSchedule definitions.- Returns:
- the schedules value.
-
withSchedules
Set the schedules property: List of ScalingPlanPooledSchedule definitions.- Parameters:
schedules- the schedules value to set.- Returns:
- the ScalingPlanInner object itself.
-
hostPoolReferences
Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.- Returns:
- the hostPoolReferences value.
-
withHostPoolReferences
Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.- Parameters:
hostPoolReferences- the hostPoolReferences value to set.- Returns:
- the ScalingPlanInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceModelWithAllowedPropertySet- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-