ScalingPlanPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPatch

Implements

public final class ScalingPlanPatch
implements JsonSerializable<ScalingPlanPatch>

Scaling plan properties that can be patched.

Constructor Summary

Constructor Description
ScalingPlanPatch()

Creates an instance of ScalingPlanPatch class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of scaling plan.

String exclusionTag()

Get the exclusionTag property: Exclusion tag for scaling plan.

String friendlyName()

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

static ScalingPlanPatch fromJson(JsonReader jsonReader)

Reads an instance of ScalingPlanPatch from the JsonReader.

List<ScalingHostPoolReference> hostPoolReferences()

Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.

List<ScalingSchedule> schedules()

Get the schedules property: List of ScalingSchedule definitions.

Map<String,String> tags()

Get the tags property: tags to be updated.

String timeZone()

Get the timeZone property: Timezone of the scaling plan.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScalingPlanPatch withDescription(String description)

Set the description property: Description of scaling plan.

ScalingPlanPatch withExclusionTag(String exclusionTag)

Set the exclusionTag property: Exclusion tag for scaling plan.

ScalingPlanPatch withFriendlyName(String friendlyName)

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

ScalingPlanPatch withHostPoolReferences(List<ScalingHostPoolReference> hostPoolReferences)

Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.

ScalingPlanPatch withSchedules(List<ScalingSchedule> schedules)

Set the schedules property: List of ScalingSchedule definitions.

ScalingPlanPatch withTags(Map<String,String> tags)

Set the tags property: tags to be updated.

ScalingPlanPatch withTimeZone(String timeZone)

Set the timeZone property: Timezone of the scaling plan.

Methods inherited from java.lang.Object

Constructor Details

ScalingPlanPatch

public ScalingPlanPatch()

Creates an instance of ScalingPlanPatch class.

Method Details

description

public String description()

Get the description property: Description of scaling plan.

Returns:

the description 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 ScalingPlanPatch fromJson(JsonReader jsonReader)

Reads an instance of ScalingPlanPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ScalingPlanPatch.

hostPoolReferences

public List<ScalingHostPoolReference> hostPoolReferences()

Get the hostPoolReferences property: List of ScalingHostPoolReference definitions.

Returns:

the hostPoolReferences value.

schedules

public List<ScalingSchedule> schedules()

Get the schedules property: List of ScalingSchedule definitions.

Returns:

the schedules value.

tags

public Map<String,String> tags()

Get the tags property: tags to be updated.

Returns:

the tags value.

timeZone

public String timeZone()

Get the timeZone property: Timezone of the scaling plan.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public ScalingPlanPatch withDescription(String description)

Set the description property: Description of scaling plan.

Parameters:

description - the description value to set.

Returns:

the ScalingPlanPatch object itself.

withExclusionTag

public ScalingPlanPatch withExclusionTag(String exclusionTag)

Set the exclusionTag property: Exclusion tag for scaling plan.

Parameters:

exclusionTag - the exclusionTag value to set.

Returns:

the ScalingPlanPatch object itself.

withFriendlyName

public ScalingPlanPatch withFriendlyName(String friendlyName)

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

Parameters:

friendlyName - the friendlyName value to set.

Returns:

the ScalingPlanPatch object itself.

withHostPoolReferences

public ScalingPlanPatch withHostPoolReferences(List<ScalingHostPoolReference> hostPoolReferences)

Set the hostPoolReferences property: List of ScalingHostPoolReference definitions.

Parameters:

hostPoolReferences - the hostPoolReferences value to set.

Returns:

the ScalingPlanPatch object itself.

withSchedules

public ScalingPlanPatch withSchedules(List<ScalingSchedule> schedules)

Set the schedules property: List of ScalingSchedule definitions.

Parameters:

schedules - the schedules value to set.

Returns:

the ScalingPlanPatch object itself.

withTags

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

Set the tags property: tags to be updated.

Parameters:

tags - the tags value to set.

Returns:

the ScalingPlanPatch object itself.

withTimeZone

public ScalingPlanPatch withTimeZone(String timeZone)

Set the timeZone property: Timezone of the scaling plan.

Parameters:

timeZone - the timeZone value to set.

Returns:

the ScalingPlanPatch object itself.

Applies to