Partager via


VirtualMachineExtensionImageInner Class

public final class VirtualMachineExtensionImageInner
extends Resource

Describes a Virtual Machine Extension Image.

Constructor Summary

Constructor Description
VirtualMachineExtensionImageInner()

Creates an instance of VirtualMachineExtensionImageInner class.

Method Summary

Modifier and Type Method and Description
String computeRole()

Get the computeRole property: The type of role (IaaS or PaaS) this extension supports.

static VirtualMachineExtensionImageInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineExtensionImageInner from the JsonReader.

String handlerSchema()

Get the handlerSchema property: The schema defined by publisher, where extension consumers should provide settings in a matching schema.

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 operatingSystem()

Get the operatingSystem property: The operating system this extension supports.

Boolean supportsMultipleExtensions()

Get the supportsMultipleExtensions property: Whether the handler can support multiple extensions.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Boolean vmScaleSetEnabled()

Get the vmScaleSetEnabled property: Whether the extension can be used on xRP VMScaleSets.

VirtualMachineExtensionImageInner withComputeRole(String computeRole)

Set the computeRole property: The type of role (IaaS or PaaS) this extension supports.

VirtualMachineExtensionImageInner withHandlerSchema(String handlerSchema)

Set the handlerSchema property: The schema defined by publisher, where extension consumers should provide settings in a matching schema.

VirtualMachineExtensionImageInner withLocation(String location)
VirtualMachineExtensionImageInner withOperatingSystem(String operatingSystem)

Set the operatingSystem property: The operating system this extension supports.

VirtualMachineExtensionImageInner withSupportsMultipleExtensions(Boolean supportsMultipleExtensions)

Set the supportsMultipleExtensions property: Whether the handler can support multiple extensions.

VirtualMachineExtensionImageInner withTags(Map<String,String> tags)
VirtualMachineExtensionImageInner withVmScaleSetEnabled(Boolean vmScaleSetEnabled)

Set the vmScaleSetEnabled property: Whether the extension can be used on xRP VMScaleSets.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineExtensionImageInner

public VirtualMachineExtensionImageInner()

Creates an instance of VirtualMachineExtensionImageInner class.

Method Details

computeRole

public String computeRole()

Get the computeRole property: The type of role (IaaS or PaaS) this extension supports.

Returns:

the computeRole value.

fromJson

public static VirtualMachineExtensionImageInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineExtensionImageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineExtensionImageInner 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.

handlerSchema

public String handlerSchema()

Get the handlerSchema property: The schema defined by publisher, where extension consumers should provide settings in a matching schema.

Returns:

the handlerSchema value.

id

public String id()

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

Overrides:

VirtualMachineExtensionImageInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualMachineExtensionImageInner.name()

Returns:

the name value.

operatingSystem

public String operatingSystem()

Get the operatingSystem property: The operating system this extension supports.

Returns:

the operatingSystem value.

supportsMultipleExtensions

public Boolean supportsMultipleExtensions()

Get the supportsMultipleExtensions property: Whether the handler can support multiple extensions.

Returns:

the supportsMultipleExtensions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineExtensionImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualMachineExtensionImageInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

vmScaleSetEnabled

public Boolean vmScaleSetEnabled()

Get the vmScaleSetEnabled property: Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS.

Returns:

the vmScaleSetEnabled value.

withComputeRole

public VirtualMachineExtensionImageInner withComputeRole(String computeRole)

Set the computeRole property: The type of role (IaaS or PaaS) this extension supports.

Parameters:

computeRole - the computeRole value to set.

Returns:

the VirtualMachineExtensionImageInner object itself.

withHandlerSchema

public VirtualMachineExtensionImageInner withHandlerSchema(String handlerSchema)

Set the handlerSchema property: The schema defined by publisher, where extension consumers should provide settings in a matching schema.

Parameters:

handlerSchema - the handlerSchema value to set.

Returns:

the VirtualMachineExtensionImageInner object itself.

withLocation

public VirtualMachineExtensionImageInner withLocation(String location)

Overrides:

VirtualMachineExtensionImageInner.withLocation(String location)

Parameters:

location

withOperatingSystem

public VirtualMachineExtensionImageInner withOperatingSystem(String operatingSystem)

Set the operatingSystem property: The operating system this extension supports.

Parameters:

operatingSystem - the operatingSystem value to set.

Returns:

the VirtualMachineExtensionImageInner object itself.

withSupportsMultipleExtensions

public VirtualMachineExtensionImageInner withSupportsMultipleExtensions(Boolean supportsMultipleExtensions)

Set the supportsMultipleExtensions property: Whether the handler can support multiple extensions.

Parameters:

supportsMultipleExtensions - the supportsMultipleExtensions value to set.

Returns:

the VirtualMachineExtensionImageInner object itself.

withTags

public VirtualMachineExtensionImageInner withTags(Map tags)

Overrides:

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

Parameters:

tags

withVmScaleSetEnabled

public VirtualMachineExtensionImageInner withVmScaleSetEnabled(Boolean vmScaleSetEnabled)

Set the vmScaleSetEnabled property: Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS.

Parameters:

vmScaleSetEnabled - the vmScaleSetEnabled value to set.

Returns:

the VirtualMachineExtensionImageInner object itself.

Applies to