InstancePatchModel Class

  • java.lang.Object
    • com.azure.resourcemanager.iotoperations.models.InstancePatchModel

Implements

public final class InstancePatchModel
implements JsonSerializable<InstancePatchModel>

The Instance update model.

Constructor Summary

Constructor Description
InstancePatchModel()

Creates an instance of InstancePatchModel class.

Method Summary

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

Reads an instance of InstancePatchModel 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)
InstancePatchModel withIdentity(ManagedServiceIdentity identity)

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

InstancePatchModel withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

InstancePatchModel

public InstancePatchModel()

Creates an instance of InstancePatchModel class.

Method Details

fromJson

public static InstancePatchModel fromJson(JsonReader jsonReader)

Reads an instance of InstancePatchModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

withIdentity

public InstancePatchModel withIdentity(ManagedServiceIdentity identity)

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

Parameters:

identity - the identity value to set.

Returns:

the InstancePatchModel object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the InstancePatchModel object itself.

Applies to