com.microsoft.azure.keyvault.models.DeletedStorageAccountItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault Show documentation
Show all versions of azure-keyvault Show documentation
This package contains Microsoft Azure Key Vault SDK.
/**
* 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.keyvault.models;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The deleted storage account item containing metadata about the deleted
* storage account.
*/
public class DeletedStorageAccountItem extends StorageAccountItem {
/**
* The url of the recovery object, used to identify and recover the deleted
* storage account.
*/
@JsonProperty(value = "recoveryId")
private String recoveryId;
/**
* The time when the storage account is scheduled to be purged, in UTC.
*/
@JsonProperty(value = "scheduledPurgeDate", access = JsonProperty.Access.WRITE_ONLY)
private Long scheduledPurgeDate;
/**
* The time when the storage account was deleted, in UTC.
*/
@JsonProperty(value = "deletedDate", access = JsonProperty.Access.WRITE_ONLY)
private Long deletedDate;
/**
* Get the recoveryId value.
*
* @return the recoveryId value
*/
public String recoveryId() {
return this.recoveryId;
}
/**
* Set the recoveryId value.
*
* @param recoveryId the recoveryId value to set
* @return the DeletedStorageAccountItem object itself.
*/
public DeletedStorageAccountItem withRecoveryId(String recoveryId) {
this.recoveryId = recoveryId;
return this;
}
/**
* Get the scheduledPurgeDate value.
*
* @return the scheduledPurgeDate value
*/
public DateTime scheduledPurgeDate() {
if (this.scheduledPurgeDate == null) {
return null;
}
return new DateTime(this.scheduledPurgeDate * 1000L, DateTimeZone.UTC);
}
/**
* Get the deletedDate value.
*
* @return the deletedDate value
*/
public DateTime deletedDate() {
if (this.deletedDate == null) {
return null;
}
return new DateTime(this.deletedDate * 1000L, DateTimeZone.UTC);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy