Class LeaseShareRequest
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.LeaseShareRequest
-
public final class LeaseShareRequest extends Object
Lease Share request schema.
-
-
Constructor Summary
Constructors Constructor Description LeaseShareRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaseShareActionaction()Get the action property: Specifies the lease action.IntegerbreakPeriod()Get the breakPeriod property: Optional.IntegerleaseDuration()Get the leaseDuration property: Required for acquire.StringleaseId()Get the leaseId property: Identifies the lease.StringproposedLeaseId()Get the proposedLeaseId property: Optional for acquire, required for change.voidvalidate()Validates the instance.LeaseShareRequestwithAction(LeaseShareAction action)Set the action property: Specifies the lease action.LeaseShareRequestwithBreakPeriod(Integer breakPeriod)Set the breakPeriod property: Optional.LeaseShareRequestwithLeaseDuration(Integer leaseDuration)Set the leaseDuration property: Required for acquire.LeaseShareRequestwithLeaseId(String leaseId)Set the leaseId property: Identifies the lease.LeaseShareRequestwithProposedLeaseId(String proposedLeaseId)Set the proposedLeaseId property: Optional for acquire, required for change.
-
-
-
Method Detail
-
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.
-
-