com.pulumi.azurenative.keyvault.outputs.KeyAttributesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.keyvault.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KeyAttributesResponse {
/**
* @return Creation time in seconds since 1970-01-01T00:00:00Z.
*
*/
private Double created;
/**
* @return Determines whether or not the object is enabled.
*
*/
private @Nullable Boolean enabled;
/**
* @return Expiry date in seconds since 1970-01-01T00:00:00Z.
*
*/
private @Nullable Double expires;
/**
* @return Indicates if the private key can be exported.
*
*/
private @Nullable Boolean exportable;
/**
* @return Not before date in seconds since 1970-01-01T00:00:00Z.
*
*/
private @Nullable Double notBefore;
/**
* @return The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval.
*
*/
private String recoveryLevel;
/**
* @return Last updated time in seconds since 1970-01-01T00:00:00Z.
*
*/
private Double updated;
private KeyAttributesResponse() {}
/**
* @return Creation time in seconds since 1970-01-01T00:00:00Z.
*
*/
public Double created() {
return this.created;
}
/**
* @return Determines whether or not the object is enabled.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Expiry date in seconds since 1970-01-01T00:00:00Z.
*
*/
public Optional expires() {
return Optional.ofNullable(this.expires);
}
/**
* @return Indicates if the private key can be exported.
*
*/
public Optional exportable() {
return Optional.ofNullable(this.exportable);
}
/**
* @return Not before date in seconds since 1970-01-01T00:00:00Z.
*
*/
public Optional notBefore() {
return Optional.ofNullable(this.notBefore);
}
/**
* @return The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval.
*
*/
public String recoveryLevel() {
return this.recoveryLevel;
}
/**
* @return Last updated time in seconds since 1970-01-01T00:00:00Z.
*
*/
public Double updated() {
return this.updated;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyAttributesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Double created;
private @Nullable Boolean enabled;
private @Nullable Double expires;
private @Nullable Boolean exportable;
private @Nullable Double notBefore;
private String recoveryLevel;
private Double updated;
public Builder() {}
public Builder(KeyAttributesResponse defaults) {
Objects.requireNonNull(defaults);
this.created = defaults.created;
this.enabled = defaults.enabled;
this.expires = defaults.expires;
this.exportable = defaults.exportable;
this.notBefore = defaults.notBefore;
this.recoveryLevel = defaults.recoveryLevel;
this.updated = defaults.updated;
}
@CustomType.Setter
public Builder created(Double created) {
if (created == null) {
throw new MissingRequiredPropertyException("KeyAttributesResponse", "created");
}
this.created = created;
return this;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder expires(@Nullable Double expires) {
this.expires = expires;
return this;
}
@CustomType.Setter
public Builder exportable(@Nullable Boolean exportable) {
this.exportable = exportable;
return this;
}
@CustomType.Setter
public Builder notBefore(@Nullable Double notBefore) {
this.notBefore = notBefore;
return this;
}
@CustomType.Setter
public Builder recoveryLevel(String recoveryLevel) {
if (recoveryLevel == null) {
throw new MissingRequiredPropertyException("KeyAttributesResponse", "recoveryLevel");
}
this.recoveryLevel = recoveryLevel;
return this;
}
@CustomType.Setter
public Builder updated(Double updated) {
if (updated == null) {
throw new MissingRequiredPropertyException("KeyAttributesResponse", "updated");
}
this.updated = updated;
return this;
}
public KeyAttributesResponse build() {
final var _resultValue = new KeyAttributesResponse();
_resultValue.created = created;
_resultValue.enabled = enabled;
_resultValue.expires = expires;
_resultValue.exportable = exportable;
_resultValue.notBefore = notBefore;
_resultValue.recoveryLevel = recoveryLevel;
_resultValue.updated = updated;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy