com.pulumi.azurenative.databox.outputs.KeyEncryptionKeyResponse 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.databox.outputs;
import com.pulumi.azurenative.databox.outputs.IdentityPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KeyEncryptionKeyResponse {
/**
* @return Managed identity properties used for key encryption.
*
*/
private @Nullable IdentityPropertiesResponse identityProperties;
/**
* @return Type of encryption key used for key encryption.
*
*/
private String kekType;
/**
* @return Key encryption key. It is required in case of Customer managed KekType.
*
*/
private @Nullable String kekUrl;
/**
* @return Kek vault resource id. It is required in case of Customer managed KekType.
*
*/
private @Nullable String kekVaultResourceID;
private KeyEncryptionKeyResponse() {}
/**
* @return Managed identity properties used for key encryption.
*
*/
public Optional identityProperties() {
return Optional.ofNullable(this.identityProperties);
}
/**
* @return Type of encryption key used for key encryption.
*
*/
public String kekType() {
return this.kekType;
}
/**
* @return Key encryption key. It is required in case of Customer managed KekType.
*
*/
public Optional kekUrl() {
return Optional.ofNullable(this.kekUrl);
}
/**
* @return Kek vault resource id. It is required in case of Customer managed KekType.
*
*/
public Optional kekVaultResourceID() {
return Optional.ofNullable(this.kekVaultResourceID);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyEncryptionKeyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable IdentityPropertiesResponse identityProperties;
private String kekType;
private @Nullable String kekUrl;
private @Nullable String kekVaultResourceID;
public Builder() {}
public Builder(KeyEncryptionKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.identityProperties = defaults.identityProperties;
this.kekType = defaults.kekType;
this.kekUrl = defaults.kekUrl;
this.kekVaultResourceID = defaults.kekVaultResourceID;
}
@CustomType.Setter
public Builder identityProperties(@Nullable IdentityPropertiesResponse identityProperties) {
this.identityProperties = identityProperties;
return this;
}
@CustomType.Setter
public Builder kekType(String kekType) {
if (kekType == null) {
throw new MissingRequiredPropertyException("KeyEncryptionKeyResponse", "kekType");
}
this.kekType = kekType;
return this;
}
@CustomType.Setter
public Builder kekUrl(@Nullable String kekUrl) {
this.kekUrl = kekUrl;
return this;
}
@CustomType.Setter
public Builder kekVaultResourceID(@Nullable String kekVaultResourceID) {
this.kekVaultResourceID = kekVaultResourceID;
return this;
}
public KeyEncryptionKeyResponse build() {
final var _resultValue = new KeyEncryptionKeyResponse();
_resultValue.identityProperties = identityProperties;
_resultValue.kekType = kekType;
_resultValue.kekUrl = kekUrl;
_resultValue.kekVaultResourceID = kekVaultResourceID;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy