Class LeaseContainerResponseInner

java.lang.Object
com.azure.resourcemanager.storage.fluent.models.LeaseContainerResponseInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<LeaseContainerResponseInner>

public final class LeaseContainerResponseInner extends Object implements com.azure.json.JsonSerializable<LeaseContainerResponseInner>
Lease Container response schema.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of LeaseContainerResponseInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of LeaseContainerResponseInner from the JsonReader.
    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.
    Get the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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.
    withLeaseTimeSeconds(String leaseTimeSeconds)
    Set the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • LeaseContainerResponseInner

      public LeaseContainerResponseInner()
      Creates an instance of LeaseContainerResponseInner class.
  • Method Details

    • 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.
    • 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.
    • leaseTimeSeconds

      public String leaseTimeSeconds()
      Get the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.
      Returns:
      the leaseTimeSeconds value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LeaseContainerResponseInner>
      Throws:
      IOException
    • fromJson

      public static LeaseContainerResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.