
com.pulumi.azurenative.sql.outputs.GetEncryptionProtectorResult 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.sql.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 GetEncryptionProtectorResult {
/**
* @return Key auto rotation opt-in flag. Either true or false.
*
*/
private @Nullable Boolean autoRotationEnabled;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Kind of encryption protector. This is metadata used for the Azure portal experience.
*
*/
private String kind;
/**
* @return Resource location.
*
*/
private String location;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The name of the server key.
*
*/
private @Nullable String serverKeyName;
/**
* @return The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
*
*/
private String serverKeyType;
/**
* @return Subregion of the encryption protector.
*
*/
private String subregion;
/**
* @return Thumbprint of the server key.
*
*/
private String thumbprint;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return The URI of the server key.
*
*/
private String uri;
private GetEncryptionProtectorResult() {}
/**
* @return Key auto rotation opt-in flag. Either true or false.
*
*/
public Optional autoRotationEnabled() {
return Optional.ofNullable(this.autoRotationEnabled);
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Kind of encryption protector. This is metadata used for the Azure portal experience.
*
*/
public String kind() {
return this.kind;
}
/**
* @return Resource location.
*
*/
public String location() {
return this.location;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The name of the server key.
*
*/
public Optional serverKeyName() {
return Optional.ofNullable(this.serverKeyName);
}
/**
* @return The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
*
*/
public String serverKeyType() {
return this.serverKeyType;
}
/**
* @return Subregion of the encryption protector.
*
*/
public String subregion() {
return this.subregion;
}
/**
* @return Thumbprint of the server key.
*
*/
public String thumbprint() {
return this.thumbprint;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return The URI of the server key.
*
*/
public String uri() {
return this.uri;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEncryptionProtectorResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean autoRotationEnabled;
private String id;
private String kind;
private String location;
private String name;
private @Nullable String serverKeyName;
private String serverKeyType;
private String subregion;
private String thumbprint;
private String type;
private String uri;
public Builder() {}
public Builder(GetEncryptionProtectorResult defaults) {
Objects.requireNonNull(defaults);
this.autoRotationEnabled = defaults.autoRotationEnabled;
this.id = defaults.id;
this.kind = defaults.kind;
this.location = defaults.location;
this.name = defaults.name;
this.serverKeyName = defaults.serverKeyName;
this.serverKeyType = defaults.serverKeyType;
this.subregion = defaults.subregion;
this.thumbprint = defaults.thumbprint;
this.type = defaults.type;
this.uri = defaults.uri;
}
@CustomType.Setter
public Builder autoRotationEnabled(@Nullable Boolean autoRotationEnabled) {
this.autoRotationEnabled = autoRotationEnabled;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder serverKeyName(@Nullable String serverKeyName) {
this.serverKeyName = serverKeyName;
return this;
}
@CustomType.Setter
public Builder serverKeyType(String serverKeyType) {
if (serverKeyType == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "serverKeyType");
}
this.serverKeyType = serverKeyType;
return this;
}
@CustomType.Setter
public Builder subregion(String subregion) {
if (subregion == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "subregion");
}
this.subregion = subregion;
return this;
}
@CustomType.Setter
public Builder thumbprint(String thumbprint) {
if (thumbprint == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "thumbprint");
}
this.thumbprint = thumbprint;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder uri(String uri) {
if (uri == null) {
throw new MissingRequiredPropertyException("GetEncryptionProtectorResult", "uri");
}
this.uri = uri;
return this;
}
public GetEncryptionProtectorResult build() {
final var _resultValue = new GetEncryptionProtectorResult();
_resultValue.autoRotationEnabled = autoRotationEnabled;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.serverKeyName = serverKeyName;
_resultValue.serverKeyType = serverKeyType;
_resultValue.subregion = subregion;
_resultValue.thumbprint = thumbprint;
_resultValue.type = type;
_resultValue.uri = uri;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy