LeaseContainerResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.fluent.models.LeaseContainerResponseInner

Implements

public final class LeaseContainerResponseInner
implements JsonSerializable<LeaseContainerResponseInner>

Lease Container response schema.

Constructor Summary

Constructor Description
LeaseContainerResponseInner()

Creates an instance of LeaseContainerResponseInner class.

Method Summary

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

Reads an instance of LeaseContainerResponseInner from the JsonReader.

String leaseId()

Get the leaseId property: Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.

String leaseTimeSeconds()

Get the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LeaseContainerResponseInner withLeaseId(String leaseId)

Set the leaseId property: Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.

LeaseContainerResponseInner withLeaseTimeSeconds(String leaseTimeSeconds)

Set the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.

Methods inherited from java.lang.Object

Constructor Details

LeaseContainerResponseInner

public LeaseContainerResponseInner()

Creates an instance of LeaseContainerResponseInner class.

Method Details

fromJson

public static LeaseContainerResponseInner fromJson(JsonReader jsonReader)

Reads an instance of LeaseContainerResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

leaseId

public String leaseId()

Get the leaseId property: Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.

Returns:

the leaseId value.

leaseTimeSeconds

public String leaseTimeSeconds()

Get the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.

Returns:

the leaseTimeSeconds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLeaseId

public LeaseContainerResponseInner withLeaseId(String leaseId)

Set the leaseId property: Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.

Parameters:

leaseId - the leaseId value to set.

Returns:

the LeaseContainerResponseInner object itself.

withLeaseTimeSeconds

public LeaseContainerResponseInner withLeaseTimeSeconds(String leaseTimeSeconds)

Set the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.

Parameters:

leaseTimeSeconds - the leaseTimeSeconds value to set.

Returns:

the LeaseContainerResponseInner object itself.

Applies to