UpdateSapVirtualInstanceRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.workloads.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.

UserAssignedServiceIdentity identity()

Get the identity property: A pre-created user assigned identity with appropriate roles assigned.

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(UserAssignedServiceIdentity identity)

Set the identity property: A pre-created user assigned identity with appropriate roles assigned.

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 UserAssignedServiceIdentity identity()

Get the identity property: A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.

Returns:

the identity 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(UserAssignedServiceIdentity identity)

Set the identity property: A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.

Parameters:

identity - the identity 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