UpdateSapVirtualInstanceRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.workloadssapvirtualinstance.models.UpdateSapVirtualInstanceRequest

Implements

public final class UpdateSapVirtualInstanceRequest
implements JsonSerializable<UpdateSapVirtualInstanceRequest>

Defines the request body for updating Virtual Instance for SAP.

Constructor Summary

Constructor Description
UpdateSapVirtualInstanceRequest()

Creates an instance of UpdateSapVirtualInstanceRequest class.

Method Summary

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

Reads an instance of UpdateSapVirtualInstanceRequest from the JsonReader.

SAPVirtualInstanceIdentity identity()

Get the identity property: Managed service identity (user assigned identities).

UpdateSapVirtualInstanceProperties properties()

Get the properties property: The update properties.

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UpdateSapVirtualInstanceRequest withIdentity(SAPVirtualInstanceIdentity identity)

Set the identity property: Managed service identity (user assigned identities).

UpdateSapVirtualInstanceRequest withProperties(UpdateSapVirtualInstanceProperties properties)

Set the properties property: The update properties.

UpdateSapVirtualInstanceRequest withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Methods inherited from java.lang.Object

Constructor Details

UpdateSapVirtualInstanceRequest

public UpdateSapVirtualInstanceRequest()

Creates an instance of UpdateSapVirtualInstanceRequest class.

Method Details

fromJson

public static UpdateSapVirtualInstanceRequest fromJson(JsonReader jsonReader)

Reads an instance of UpdateSapVirtualInstanceRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public SAPVirtualInstanceIdentity identity()

Get the identity property: Managed service identity (user assigned identities).

Returns:

the identity value.

properties

public UpdateSapVirtualInstanceProperties properties()

Get the properties property: The update properties.

Returns:

the properties value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public UpdateSapVirtualInstanceRequest withIdentity(SAPVirtualInstanceIdentity identity)

Set the identity property: Managed service identity (user assigned identities).

Parameters:

identity - the identity value to set.

Returns:

the UpdateSapVirtualInstanceRequest object itself.

withProperties

public UpdateSapVirtualInstanceRequest withProperties(UpdateSapVirtualInstanceProperties properties)

Set the properties property: The update properties.

Parameters:

properties - the properties value to set.

Returns:

the UpdateSapVirtualInstanceRequest object itself.

withTags

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

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the UpdateSapVirtualInstanceRequest object itself.

Applies to