Partilhar via


Extension Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.Extension

Implements

public final class Extension
implements JsonSerializable<Extension>

Describes a cloud service Extension.

Constructor Summary

Constructor Description
Extension()

Creates an instance of Extension class.

Method Summary

Modifier and Type Method and Description
static Extension fromJson(JsonReader jsonReader)

Reads an instance of Extension from the JsonReader.

String name()

Get the name property: The name of the extension.

CloudServiceExtensionProperties properties()

Get the properties property: Extension Properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Extension withName(String name)

Set the name property: The name of the extension.

Extension withProperties(CloudServiceExtensionProperties properties)

Set the properties property: Extension Properties.

Methods inherited from java.lang.Object

Constructor Details

Extension

public Extension()

Creates an instance of Extension class.

Method Details

fromJson

public static Extension fromJson(JsonReader jsonReader)

Reads an instance of Extension from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the extension.

Returns:

the name value.

properties

public CloudServiceExtensionProperties properties()

Get the properties property: Extension Properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public Extension withName(String name)

Set the name property: The name of the extension.

Parameters:

name - the name value to set.

Returns:

the Extension object itself.

withProperties

public Extension withProperties(CloudServiceExtensionProperties properties)

Set the properties property: Extension Properties.

Parameters:

properties - the properties value to set.

Returns:

the Extension object itself.

Applies to