Class LeaseContainerRequest

java.lang.Object
com.microsoft.azure.management.storage.LeaseContainerRequest

public class LeaseContainerRequest extends Object
Lease Container request schema.
  • Constructor Details

    • LeaseContainerRequest

      public LeaseContainerRequest()
  • Method Details

    • action

      public String action()
      Get specifies the lease action. Can be one of the available actions. Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break'.
      Returns:
      the action value
    • withAction

      public LeaseContainerRequest withAction(String action)
      Set specifies the lease action. Can be one of the available actions. Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break'.
      Parameters:
      action - the action value to set
      Returns:
      the LeaseContainerRequest object itself.
    • leaseId

      public String leaseId()
      Get identifies the lease. Can be specified in any valid GUID string format.
      Returns:
      the leaseId value
    • withLeaseId

      public LeaseContainerRequest withLeaseId(String leaseId)
      Set identifies the lease. Can be specified in any valid GUID string format.
      Parameters:
      leaseId - the leaseId value to set
      Returns:
      the LeaseContainerRequest object itself.
    • breakPeriod

      public Integer breakPeriod()
      Get optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
      Returns:
      the breakPeriod value
    • withBreakPeriod

      public LeaseContainerRequest withBreakPeriod(Integer breakPeriod)
      Set optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
      Parameters:
      breakPeriod - the breakPeriod value to set
      Returns:
      the LeaseContainerRequest object itself.
    • leaseDuration

      public Integer leaseDuration()
      Get required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
      Returns:
      the leaseDuration value
    • withLeaseDuration

      public LeaseContainerRequest withLeaseDuration(Integer leaseDuration)
      Set required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
      Parameters:
      leaseDuration - the leaseDuration value to set
      Returns:
      the LeaseContainerRequest object itself.
    • proposedLeaseId

      public String proposedLeaseId()
      Get optional for acquire, required for change. Proposed lease ID, in a GUID string format.
      Returns:
      the proposedLeaseId value
    • withProposedLeaseId

      public LeaseContainerRequest withProposedLeaseId(String proposedLeaseId)
      Set optional for acquire, required for change. Proposed lease ID, in a GUID string format.
      Parameters:
      proposedLeaseId - the proposedLeaseId value to set
      Returns:
      the LeaseContainerRequest object itself.