
com.pulumi.azurenative.storage.outputs.EncryptionServiceResponse 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.storage.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EncryptionServiceResponse {
/**
* @return A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.
*
*/
private @Nullable Boolean enabled;
/**
* @return Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.
*
*/
private @Nullable String keyType;
/**
* @return Gets a rough estimate of the date/time when the encryption was last enabled by the user. Data is encrypted at rest by default today and cannot be disabled.
*
*/
private String lastEnabledTime;
private EncryptionServiceResponse() {}
/**
* @return A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.
*
*/
public Optional keyType() {
return Optional.ofNullable(this.keyType);
}
/**
* @return Gets a rough estimate of the date/time when the encryption was last enabled by the user. Data is encrypted at rest by default today and cannot be disabled.
*
*/
public String lastEnabledTime() {
return this.lastEnabledTime;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EncryptionServiceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable String keyType;
private String lastEnabledTime;
public Builder() {}
public Builder(EncryptionServiceResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.keyType = defaults.keyType;
this.lastEnabledTime = defaults.lastEnabledTime;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder keyType(@Nullable String keyType) {
this.keyType = keyType;
return this;
}
@CustomType.Setter
public Builder lastEnabledTime(String lastEnabledTime) {
if (lastEnabledTime == null) {
throw new MissingRequiredPropertyException("EncryptionServiceResponse", "lastEnabledTime");
}
this.lastEnabledTime = lastEnabledTime;
return this;
}
public EncryptionServiceResponse build() {
final var _resultValue = new EncryptionServiceResponse();
_resultValue.enabled = enabled;
_resultValue.keyType = keyType;
_resultValue.lastEnabledTime = lastEnabledTime;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy