Compartilhar via


ManagementLockOwner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.ManagementLockOwner

Implements

public final class ManagementLockOwner
implements JsonSerializable<ManagementLockOwner>

Lock owner properties.

Constructor Summary

Constructor Description
ManagementLockOwner()

Creates an instance of ManagementLockOwner class.

Method Summary

Modifier and Type Method and Description
String applicationId()

Get the applicationId property: The application ID of the lock owner.

static ManagementLockOwner fromJson(JsonReader jsonReader)

Reads an instance of ManagementLockOwner from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagementLockOwner withApplicationId(String applicationId)

Set the applicationId property: The application ID of the lock owner.

Methods inherited from java.lang.Object

Constructor Details

ManagementLockOwner

public ManagementLockOwner()

Creates an instance of ManagementLockOwner class.

Method Details

applicationId

public String applicationId()

Get the applicationId property: The application ID of the lock owner.

Returns:

the applicationId value.

fromJson

public static ManagementLockOwner fromJson(JsonReader jsonReader)

Reads an instance of ManagementLockOwner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplicationId

public ManagementLockOwner withApplicationId(String applicationId)

Set the applicationId property: The application ID of the lock owner.

Parameters:

applicationId - the applicationId value to set.

Returns:

the ManagementLockOwner object itself.

Applies to