LeaseShareResponseInner Class
- java.
lang. Object - com.
azure. resourcemanager. storage. fluent. models. LeaseShareResponseInner
- com.
Implements
public final class LeaseShareResponseInner
implements JsonSerializable<LeaseShareResponseInner>
Lease Share response schema.
Constructor Summary
Constructor | Description |
---|---|
LeaseShareResponseInner() |
Creates an instance of Lease |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Lease |
fromJson(JsonReader jsonReader)
Reads an instance of Lease |
String |
leaseId()
Get the lease |
String |
leaseTimeSeconds()
Get the lease |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Lease |
withLeaseId(String leaseId)
Set the lease |
Lease |
withLeaseTimeSeconds(String leaseTimeSeconds)
Set the lease |
Methods inherited from java.lang.Object
Constructor Details
LeaseShareResponseInner
public LeaseShareResponseInner()
Creates an instance of LeaseShareResponseInner class.
Method Details
fromJson
public static LeaseShareResponseInner fromJson(JsonReader jsonReader)
Reads an instance of LeaseShareResponseInner from the JsonReader.
Parameters:
Returns:
Throws:
leaseId
public String leaseId()
Get the leaseId property: Returned unique lease ID that must be included with any request to delete the share, or to renew, change, or release the lease.
Returns:
leaseTimeSeconds
public String leaseTimeSeconds()
Get the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLeaseId
public LeaseShareResponseInner withLeaseId(String leaseId)
Set the leaseId property: Returned unique lease ID that must be included with any request to delete the share, or to renew, change, or release the lease.
Parameters:
Returns:
withLeaseTimeSeconds
public LeaseShareResponseInner withLeaseTimeSeconds(String leaseTimeSeconds)
Set the leaseTimeSeconds property: Approximate time remaining in the lease period, in seconds.
Parameters:
Returns:
Applies to
Azure SDK for Java