PatchResourceRequestInput Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput

Implements

public final class PatchResourceRequestInput
implements JsonSerializable<PatchResourceRequestInput>

Patch Request content for Microsoft.DataProtection resources.

Constructor Summary

Constructor Description
PatchResourceRequestInput()

Creates an instance of PatchResourceRequestInput class.

Method Summary

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

Reads an instance of PatchResourceRequestInput from the JsonReader.

DppIdentityDetails identity()

Get the identity property: Input Managed Identity Details.

PatchBackupVaultInput properties()

Get the properties property: Resource properties.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
PatchResourceRequestInput withIdentity(DppIdentityDetails identity)

Set the identity property: Input Managed Identity Details.

PatchResourceRequestInput withProperties(PatchBackupVaultInput properties)

Set the properties property: Resource properties.

PatchResourceRequestInput withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

PatchResourceRequestInput

public PatchResourceRequestInput()

Creates an instance of PatchResourceRequestInput class.

Method Details

fromJson

public static PatchResourceRequestInput fromJson(JsonReader jsonReader)

Reads an instance of PatchResourceRequestInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public DppIdentityDetails identity()

Get the identity property: Input Managed Identity Details.

Returns:

the identity value.

properties

public PatchBackupVaultInput properties()

Get the properties property: Resource properties.

Returns:

the properties 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:

withIdentity

public PatchResourceRequestInput withIdentity(DppIdentityDetails identity)

Set the identity property: Input Managed Identity Details.

Parameters:

identity - the identity value to set.

Returns:

the PatchResourceRequestInput object itself.

withProperties

public PatchResourceRequestInput withProperties(PatchBackupVaultInput properties)

Set the properties property: Resource properties.

Parameters:

properties - the properties value to set.

Returns:

the PatchResourceRequestInput object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the PatchResourceRequestInput object itself.

Applies to