public final class LeaseContainerRequest extends Object
| Constructor and Description |
|---|
LeaseContainerRequest() |
| Modifier and Type | Method and Description |
|---|---|
LeaseContainerRequestAction |
action()
Get the action property: Specifies the lease action.
|
Integer |
breakPeriod()
Get the breakPeriod property: Optional.
|
Integer |
leaseDuration()
Get the leaseDuration property: Required for acquire.
|
String |
leaseId()
Get the leaseId property: Identifies the lease.
|
String |
proposedLeaseId()
Get the proposedLeaseId property: Optional for acquire, required for change.
|
void |
validate()
Validates the instance.
|
LeaseContainerRequest |
withAction(LeaseContainerRequestAction action)
Set the action property: Specifies the lease action.
|
LeaseContainerRequest |
withBreakPeriod(Integer breakPeriod)
Set the breakPeriod property: Optional.
|
LeaseContainerRequest |
withLeaseDuration(Integer leaseDuration)
Set the leaseDuration property: Required for acquire.
|
LeaseContainerRequest |
withLeaseId(String leaseId)
Set the leaseId property: Identifies the lease.
|
LeaseContainerRequest |
withProposedLeaseId(String proposedLeaseId)
Set the proposedLeaseId property: Optional for acquire, required for change.
|
public LeaseContainerRequestAction action()
public LeaseContainerRequest withAction(LeaseContainerRequestAction action)
action - the action value to set.public String leaseId()
public LeaseContainerRequest withLeaseId(String leaseId)
leaseId - the leaseId value to set.public Integer breakPeriod()
public LeaseContainerRequest withBreakPeriod(Integer breakPeriod)
breakPeriod - the breakPeriod value to set.public Integer leaseDuration()
public LeaseContainerRequest withLeaseDuration(Integer leaseDuration)
leaseDuration - the leaseDuration value to set.public String proposedLeaseId()
public LeaseContainerRequest withProposedLeaseId(String proposedLeaseId)
proposedLeaseId - the proposedLeaseId value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.