Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.storage.implementation; import com.fasterxml.jackson.annotation.JsonProperty;
Lease Container response schema.
/** * Lease Container response schema. */
public class LeaseContainerResponseInner {
Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.
/** * Returned unique lease ID that must be included with any request to * delete the container, or to renew, change, or release the lease. */
@JsonProperty(value = "leaseId") private String leaseId;
Approximate time remaining in the lease period, in seconds.
/** * Approximate time remaining in the lease period, in seconds. */
@JsonProperty(value = "leaseTimeSeconds") private String leaseTimeSeconds;
Get returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.
Returns:the leaseId value
/** * Get returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease. * * @return the leaseId value */
public String leaseId() { return this.leaseId; }
Set returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.
Params:
  • leaseId – the leaseId value to set
Returns:the LeaseContainerResponseInner object itself.
/** * Set returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease. * * @param leaseId the leaseId value to set * @return the LeaseContainerResponseInner object itself. */
public LeaseContainerResponseInner withLeaseId(String leaseId) { this.leaseId = leaseId; return this; }
Get approximate time remaining in the lease period, in seconds.
Returns:the leaseTimeSeconds value
/** * Get approximate time remaining in the lease period, in seconds. * * @return the leaseTimeSeconds value */
public String leaseTimeSeconds() { return this.leaseTimeSeconds; }
Set approximate time remaining in the lease period, in seconds.
Params:
  • leaseTimeSeconds – the leaseTimeSeconds value to set
Returns:the LeaseContainerResponseInner object itself.
/** * Set approximate time remaining in the lease period, in seconds. * * @param leaseTimeSeconds the leaseTimeSeconds value to set * @return the LeaseContainerResponseInner object itself. */
public LeaseContainerResponseInner withLeaseTimeSeconds(String leaseTimeSeconds) { this.leaseTimeSeconds = leaseTimeSeconds; return this; } }