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
-
public final class ScalingPlanInner extends ResourceModelWithAllowedPropertySet
ScalingPlan Represents a scaling plan definition.
-
-
Constructor Summary
Constructors Constructor Description ScalingPlanInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: Description of scaling plan.StringexclusionTag()Get the exclusionTag property: Exclusion tag for scaling plan.StringfriendlyName()Get the friendlyName property: User friendly name of scaling plan.List<ScalingHostPoolReference>hostPoolReferences()Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.ScalingHostPoolTypehostPoolType()Get the hostPoolType property: HostPool type for desktop.StringobjectId()Get the objectId property: ObjectId of scaling plan.List<ScalingSchedule>schedules()Get the schedules property: List of ScalingSchedule definitions.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.StringtimeZone()Get the timeZone property: Timezone of the scaling plan.voidvalidate()Validates the instance.ScalingPlanInnerwithDescription(String description)Set the description property: Description of scaling plan.ScalingPlanInnerwithExclusionTag(String exclusionTag)Set the exclusionTag property: Exclusion tag for scaling plan.ScalingPlanInnerwithFriendlyName(String friendlyName)Set the friendlyName property: User friendly name of scaling plan.ScalingPlanInnerwithHostPoolReferences(List<ScalingHostPoolReference> hostPoolReferences)Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.ScalingPlanInnerwithHostPoolType(ScalingHostPoolType hostPoolType)Set the hostPoolType property: HostPool type for desktop.ScalingPlanInnerwithIdentity(ResourceModelWithAllowedPropertySetIdentity identity)Set the identity property: The identity property.ScalingPlanInnerwithKind(String kind)Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.ScalingPlanInnerwithLocation(String location)ScalingPlanInnerwithManagedBy(String managedBy)Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.ScalingPlanInnerwithPlan(ResourceModelWithAllowedPropertySetPlan plan)Set the plan property: The plan property.ScalingPlanInnerwithSchedules(List<ScalingSchedule> schedules)Set the schedules property: List of ScalingSchedule definitions.ScalingPlanInnerwithSku(ResourceModelWithAllowedPropertySetSku sku)Set the sku property: The sku property.ScalingPlanInnerwithTags(Map<String,String> tags)ScalingPlanInnerwithTimeZone(String timeZone)Set the timeZone property: Timezone of the scaling plan.
-
-
-
Method Detail
-
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
public ScalingPlanInner withManagedBy(String managedBy)
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
public ScalingPlanInner withKind(String kind)
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
public ScalingPlanInner withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)
Set the identity property: The identity property.- Overrides:
withIdentityin classResourceModelWithAllowedPropertySet- Parameters:
identity- the identity value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withSku
public ScalingPlanInner withSku(ResourceModelWithAllowedPropertySetSku sku)
Set the sku property: The sku property.- Overrides:
withSkuin classResourceModelWithAllowedPropertySet- Parameters:
sku- the sku value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withPlan
public ScalingPlanInner withPlan(ResourceModelWithAllowedPropertySetPlan plan)
Set the plan property: The plan property.- Overrides:
withPlanin classResourceModelWithAllowedPropertySet- Parameters:
plan- the plan value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withLocation
public ScalingPlanInner withLocation(String location)
- Overrides:
withLocationin classResourceModelWithAllowedPropertySet
-
withTags
public ScalingPlanInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classResourceModelWithAllowedPropertySet
-
objectId
public String objectId()
Get the objectId property: ObjectId of scaling plan. (internal use).- Returns:
- the objectId value.
-
description
public String description()
Get the description property: Description of scaling plan.- Returns:
- the description value.
-
withDescription
public ScalingPlanInner withDescription(String description)
Set the description property: Description of scaling plan.- Parameters:
description- the description value to set.- Returns:
- the ScalingPlanInner object itself.
-
friendlyName
public String friendlyName()
Get the friendlyName property: User friendly name of scaling plan.- Returns:
- the friendlyName value.
-
withFriendlyName
public ScalingPlanInner withFriendlyName(String friendlyName)
Set the friendlyName property: User friendly name of scaling plan.- Parameters:
friendlyName- the friendlyName value to set.- Returns:
- the ScalingPlanInner object itself.
-
timeZone
public String timeZone()
Get the timeZone property: Timezone of the scaling plan.- Returns:
- the timeZone value.
-
withTimeZone
public ScalingPlanInner withTimeZone(String timeZone)
Set the timeZone property: Timezone of the scaling plan.- Parameters:
timeZone- the timeZone value to set.- Returns:
- the ScalingPlanInner object itself.
-
hostPoolType
public ScalingHostPoolType hostPoolType()
Get the hostPoolType property: HostPool type for desktop.- Returns:
- the hostPoolType value.
-
withHostPoolType
public ScalingPlanInner withHostPoolType(ScalingHostPoolType hostPoolType)
Set the hostPoolType property: HostPool type for desktop.- Parameters:
hostPoolType- the hostPoolType value to set.- Returns:
- the ScalingPlanInner object itself.
-
exclusionTag
public String exclusionTag()
Get the exclusionTag property: Exclusion tag for scaling plan.- Returns:
- the exclusionTag value.
-
withExclusionTag
public ScalingPlanInner withExclusionTag(String exclusionTag)
Set the exclusionTag property: Exclusion tag for scaling plan.- Parameters:
exclusionTag- the exclusionTag value to set.- Returns:
- the ScalingPlanInner object itself.
-
schedules
public List<ScalingSchedule> schedules()
Get the schedules property: List of ScalingSchedule definitions.- Returns:
- the schedules value.
-
withSchedules
public ScalingPlanInner withSchedules(List<ScalingSchedule> schedules)
Set the schedules property: List of ScalingSchedule definitions.- Parameters:
schedules- the schedules value to set.- Returns:
- the ScalingPlanInner object itself.
-
hostPoolReferences
public List<ScalingHostPoolReference> hostPoolReferences()
Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.- Returns:
- the hostPoolReferences value.
-
withHostPoolReferences
public ScalingPlanInner withHostPoolReferences(List<ScalingHostPoolReference> hostPoolReferences)
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.
-
-