com.microsoft.azure.keyvault.models.IssuerAttributes 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 library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure Key Vault service are:
(1) https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys.
(2) https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets.
(3) https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates.
It is recommended that you move to the new package.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// 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 attributes of an issuer managed by the Key Vault service.
*/
public class IssuerAttributes {
/**
* Determines whether the issuer is enabled.
*/
@JsonProperty(value = "enabled")
private Boolean enabled;
/**
* Creation time in UTC.
*/
@JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
private Long created;
/**
* Last updated time in UTC.
*/
@JsonProperty(value = "updated", access = JsonProperty.Access.WRITE_ONLY)
private Long updated;
/**
* Get the enabled value.
*
* @return the enabled value
*/
public Boolean enabled() {
return this.enabled;
}
/**
* Set the enabled value.
*
* @param enabled the enabled value to set
* @return the IssuerAttributes object itself.
*/
public IssuerAttributes withEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Get the created value.
*
* @return the created value
*/
public DateTime created() {
if (this.created == null) {
return null;
}
return new DateTime(this.created * 1000L, DateTimeZone.UTC);
}
/**
* Get the updated value.
*
* @return the updated value
*/
public DateTime updated() {
if (this.updated == null) {
return null;
}
return new DateTime(this.updated * 1000L, DateTimeZone.UTC);
}
}