LoadTestResourcePatchRequestBody Class

  • java.lang.Object
    • com.azure.resourcemanager.loadtesting.models.LoadTestResourcePatchRequestBody

Implements

public final class LoadTestResourcePatchRequestBody
implements JsonSerializable<LoadTestResourcePatchRequestBody>

The type used for update operations of the LoadTestResource.

Constructor Summary

Constructor Description
LoadTestResourcePatchRequestBody()

Creates an instance of LoadTestResourcePatchRequestBody class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the resource.

EncryptionProperties encryption()

Get the encryption property: CMK Encryption property.

static LoadTestResourcePatchRequestBody fromJson(JsonReader jsonReader)

Reads an instance of LoadTestResourcePatchRequestBody from the JsonReader.

ManagedServiceIdentity identity()

Get the identity property: The managed service identities assigned to this resource.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadTestResourcePatchRequestBody withDescription(String description)

Set the description property: Description of the resource.

LoadTestResourcePatchRequestBody withEncryption(EncryptionProperties encryption)

Set the encryption property: CMK Encryption property.

LoadTestResourcePatchRequestBody withIdentity(ManagedServiceIdentity identity)

Set the identity property: The managed service identities assigned to this resource.

LoadTestResourcePatchRequestBody withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

LoadTestResourcePatchRequestBody

public LoadTestResourcePatchRequestBody()

Creates an instance of LoadTestResourcePatchRequestBody class.

Method Details

description

public String description()

Get the description property: Description of the resource.

Returns:

the description value.

encryption

public EncryptionProperties encryption()

Get the encryption property: CMK Encryption property.

Returns:

the encryption value.

fromJson

public static LoadTestResourcePatchRequestBody fromJson(JsonReader jsonReader)

Reads an instance of LoadTestResourcePatchRequestBody from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public ManagedServiceIdentity identity()

Get the identity property: The managed service identities assigned to this resource.

Returns:

the identity value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public LoadTestResourcePatchRequestBody withDescription(String description)

Set the description property: Description of the resource.

Parameters:

description - the description value to set.

Returns:

the LoadTestResourcePatchRequestBody object itself.

withEncryption

public LoadTestResourcePatchRequestBody withEncryption(EncryptionProperties encryption)

Set the encryption property: CMK Encryption property.

Parameters:

encryption - the encryption value to set.

Returns:

the LoadTestResourcePatchRequestBody object itself.

withIdentity

public LoadTestResourcePatchRequestBody withIdentity(ManagedServiceIdentity identity)

Set the identity property: The managed service identities assigned to this resource.

Parameters:

identity - the identity value to set.

Returns:

the LoadTestResourcePatchRequestBody object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the LoadTestResourcePatchRequestBody object itself.

Applies to