다음을 통해 공유


CloudServiceExtensionProfile Class

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

Implements

public final class CloudServiceExtensionProfile
implements JsonSerializable<CloudServiceExtensionProfile>

Describes a cloud service extension profile.

Constructor Summary

Constructor Description
CloudServiceExtensionProfile()

Creates an instance of CloudServiceExtensionProfile class.

Method Summary

Modifier and Type Method and Description
List<Extension> extensions()

Get the extensions property: List of extensions for the cloud service.

static CloudServiceExtensionProfile fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceExtensionProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServiceExtensionProfile withExtensions(List<Extension> extensions)

Set the extensions property: List of extensions for the cloud service.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceExtensionProfile

public CloudServiceExtensionProfile()

Creates an instance of CloudServiceExtensionProfile class.

Method Details

extensions

public List<Extension> extensions()

Get the extensions property: List of extensions for the cloud service.

Returns:

the extensions value.

fromJson

public static CloudServiceExtensionProfile fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceExtensionProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExtensions

public CloudServiceExtensionProfile withExtensions(List<Extension> extensions)

Set the extensions property: List of extensions for the cloud service.

Parameters:

extensions - the extensions value to set.

Returns:

the CloudServiceExtensionProfile object itself.

Applies to