ScalingPlanInner Class

public final class ScalingPlanInner
extends ResourceModelWithAllowedPropertySet

ScalingPlan Represents a scaling plan definition.

Constructor Summary

Constructor Description
ScalingPlanInner()

Creates an instance of ScalingPlanInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of scaling plan.

String etag()

Get the etag property: The etag field is *not* required.

String exclusionTag()

Get the exclusionTag property: Exclusion tag for scaling plan.

String friendlyName()

Get the friendlyName property: User friendly name of scaling plan.

static ScalingPlanInner fromJson(JsonReader jsonReader)

Reads an instance of ScalingPlanInner from the JsonReader.

List<ScalingHostPoolReference> hostPoolReferences()

Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.

ScalingHostPoolType hostPoolType()

Get the hostPoolType property: HostPool type for desktop.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String objectId()

Get the objectId property: ObjectId of scaling plan.

List<ScalingSchedule> schedules()

Get the schedules property: List of ScalingPlanPooledSchedule definitions.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

String timeZone()

Get the timeZone property: Timezone of the scaling plan.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ScalingPlanInner withDescription(String description)

Set the description property: Description of scaling plan.

ScalingPlanInner withExclusionTag(String exclusionTag)

Set the exclusionTag property: Exclusion tag for scaling plan.

ScalingPlanInner withFriendlyName(String friendlyName)

Set the friendlyName property: User friendly name of scaling plan.

ScalingPlanInner withHostPoolReferences(List<ScalingHostPoolReference> hostPoolReferences)

Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.

ScalingPlanInner withHostPoolType(ScalingHostPoolType hostPoolType)

Set the hostPoolType property: HostPool type for desktop.

ScalingPlanInner withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)

Set the identity property: The identity property.

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.

ScalingPlanInner withLocation(String location)
ScalingPlanInner withManagedBy(String managedBy)

Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.

ScalingPlanInner withPlan(ResourceModelWithAllowedPropertySetPlan plan)

Set the plan property: The plan property.

ScalingPlanInner withSchedules(List<ScalingSchedule> schedules)

Set the schedules property: List of ScalingPlanPooledSchedule definitions.

ScalingPlanInner withSku(ResourceModelWithAllowedPropertySetSku sku)

Set the sku property: The sku property.

ScalingPlanInner withTags(Map<String,String> tags)
ScalingPlanInner withTimeZone(String timeZone)

Set the timeZone property: Timezone of the scaling plan.

Methods inherited from Resource

Methods inherited from ResourceModelWithAllowedPropertySet

Methods inherited from java.lang.Object

Constructor Details

ScalingPlanInner

public ScalingPlanInner()

Creates an instance of ScalingPlanInner class.

Method Details

description

public String description()

Get the description property: Description of scaling plan.

Returns:

the description value.

etag

public String etag()

Get the etag property: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

Overrides:

ScalingPlanInner.etag()

Returns:

the etag value.

exclusionTag

public String exclusionTag()

Get the exclusionTag property: Exclusion tag for scaling plan.

Returns:

the exclusionTag value.

friendlyName

public String friendlyName()

Get the friendlyName property: User friendly name of scaling plan.

Returns:

the friendlyName value.

fromJson

public static ScalingPlanInner fromJson(JsonReader jsonReader)

Reads an instance of ScalingPlanInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScalingPlanInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostPoolReferences

public List<ScalingHostPoolReference> hostPoolReferences()

Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.

Returns:

the hostPoolReferences value.

hostPoolType

public ScalingHostPoolType hostPoolType()

Get the hostPoolType property: HostPool type for desktop.

Returns:

the hostPoolType value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ScalingPlanInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ScalingPlanInner.name()

Returns:

the name value.

objectId

public String objectId()

Get the objectId property: ObjectId of scaling plan. (internal use).

Returns:

the objectId value.

schedules

public List<ScalingSchedule> schedules()

Get the schedules property: List of ScalingPlanPooledSchedule definitions.

Returns:

the schedules value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Overrides:

ScalingPlanInner.systemData()

Returns:

the systemData value.

timeZone

public String timeZone()

Get the timeZone property: Timezone of the scaling plan.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScalingPlanInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ScalingPlanInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ScalingPlanInner.validate()

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.

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.

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.

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.

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.

withIdentity

public ScalingPlanInner withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)

Set the identity property: The identity property.

Overrides:

ScalingPlanInner.withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)

Parameters:

identity

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:

ScalingPlanInner.withKind(String kind)

Parameters:

kind

withLocation

public ScalingPlanInner withLocation(String location)

Overrides:

ScalingPlanInner.withLocation(String location)

Parameters:

location

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:

ScalingPlanInner.withManagedBy(String managedBy)

Parameters:

managedBy

withPlan

public ScalingPlanInner withPlan(ResourceModelWithAllowedPropertySetPlan plan)

Set the plan property: The plan property.

Overrides:

ScalingPlanInner.withPlan(ResourceModelWithAllowedPropertySetPlan plan)

Parameters:

plan

withSchedules

public ScalingPlanInner withSchedules(List<ScalingSchedule> schedules)

Set the schedules property: List of ScalingPlanPooledSchedule definitions.

Parameters:

schedules - the schedules value to set.

Returns:

the ScalingPlanInner object itself.

withSku

public ScalingPlanInner withSku(ResourceModelWithAllowedPropertySetSku sku)

Set the sku property: The sku property.

Overrides:

ScalingPlanInner.withSku(ResourceModelWithAllowedPropertySetSku sku)

Parameters:

sku

withTags

public ScalingPlanInner withTags(Map<String,String> tags)

Overrides:

ScalingPlanInner.withTags(Map<String,String> tags)

Parameters:

tags

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.

Applies to