Class LeaseShareRequest

java.lang.Object
com.azure.resourcemanager.storage.models.LeaseShareRequest

public final class LeaseShareRequest extends Object
Lease Share request schema.
  • Constructor Details

    • LeaseShareRequest

      public LeaseShareRequest()
  • Method Details

    • action

      public LeaseShareAction action()
      Get the action property: Specifies the lease action. Can be one of the available actions.
      Returns:
      the action value.
    • withAction

      public LeaseShareRequest withAction(LeaseShareAction action)
      Set the action property: Specifies the lease action. Can be one of the available actions.
      Parameters:
      action - the action value to set.
      Returns:
      the LeaseShareRequest object itself.
    • leaseId

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

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

      public Integer breakPeriod()
      Get the breakPeriod property: 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 LeaseShareRequest withBreakPeriod(Integer breakPeriod)
      Set the breakPeriod property: 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 LeaseShareRequest object itself.
    • leaseDuration

      public Integer leaseDuration()
      Get the leaseDuration property: 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 LeaseShareRequest withLeaseDuration(Integer leaseDuration)
      Set the leaseDuration property: 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 LeaseShareRequest object itself.
    • proposedLeaseId

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

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

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