Class LeaseContainerRequest
java.lang.Object
com.microsoft.azure.management.storage.LeaseContainerRequest
Lease Container request schema.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get specifies the lease action.Get optional.Get required for acquire.leaseId()
Get identifies the lease.Get optional for acquire, required for change.withAction
(String action) Set specifies the lease action.withBreakPeriod
(Integer breakPeriod) Set optional.withLeaseDuration
(Integer leaseDuration) Set required for acquire.withLeaseId
(String leaseId) Set identifies the lease.withProposedLeaseId
(String proposedLeaseId) Set optional for acquire, required for change.
-
Constructor Details
-
LeaseContainerRequest
public LeaseContainerRequest()
-
-
Method Details
-
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
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
Get identifies the lease. Can be specified in any valid GUID string format.- Returns:
- the leaseId value
-
withLeaseId
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
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
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
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
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
Get optional for acquire, required for change. Proposed lease ID, in a GUID string format.- Returns:
- the proposedLeaseId value
-
withProposedLeaseId
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.
-