Partager via


CloudServiceOsProfile Class

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

Implements

public final class CloudServiceOsProfile
implements JsonSerializable<CloudServiceOsProfile>

Describes the OS profile for the cloud service.

Constructor Summary

Constructor Description
CloudServiceOsProfile()

Creates an instance of CloudServiceOsProfile class.

Method Summary

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

Reads an instance of CloudServiceOsProfile from the JsonReader.

List<CloudServiceVaultSecretGroup> secrets()

Get the secrets property: Specifies set of certificates that should be installed onto the role instances.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServiceOsProfile withSecrets(List<CloudServiceVaultSecretGroup> secrets)

Set the secrets property: Specifies set of certificates that should be installed onto the role instances.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceOsProfile

public CloudServiceOsProfile()

Creates an instance of CloudServiceOsProfile class.

Method Details

fromJson

public static CloudServiceOsProfile fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceOsProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

secrets

public List secrets()

Get the secrets property: Specifies set of certificates that should be installed onto the role instances.

Returns:

the secrets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecrets

public CloudServiceOsProfile withSecrets(List secrets)

Set the secrets property: Specifies set of certificates that should be installed onto the role instances.

Parameters:

secrets - the secrets value to set.

Returns:

the CloudServiceOsProfile object itself.

Applies to