com.pulumi.azure.appconfiguration.outputs.GetConfigurationKeyResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.appconfiguration.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetConfigurationKeyResult {
private String configurationStoreId;
/**
* @return The content type of the App Configuration Key.
*
*/
private String contentType;
/**
* @return The ETag of the key.
*
*/
private String etag;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String key;
private @Nullable String label;
/**
* @return Is this App Configuration Key be Locked to prevent changes.
*
*/
private Boolean locked;
/**
* @return A mapping of tags assigned to the resource.
*
*/
private Map tags;
/**
* @return The type of the App Configuration Key. It can either be `kv` (simple [key/value](https://docs.microsoft.com/azure/azure-app-configuration/concept-key-value)) or `vault` (where the value is a reference to a [Key Vault Secret](https://azure.microsoft.com/en-gb/services/key-vault/).
*
*/
private String type;
/**
* @return The value of the App Configuration Key.
*
*/
private String value;
/**
* @return The ID of the vault secret this App Configuration Key refers to, when `type` is `vault`.
*
*/
private String vaultKeyReference;
private GetConfigurationKeyResult() {}
public String configurationStoreId() {
return this.configurationStoreId;
}
/**
* @return The content type of the App Configuration Key.
*
*/
public String contentType() {
return this.contentType;
}
/**
* @return The ETag of the key.
*
*/
public String etag() {
return this.etag;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String key() {
return this.key;
}
public Optional label() {
return Optional.ofNullable(this.label);
}
/**
* @return Is this App Configuration Key be Locked to prevent changes.
*
*/
public Boolean locked() {
return this.locked;
}
/**
* @return A mapping of tags assigned to the resource.
*
*/
public Map tags() {
return this.tags;
}
/**
* @return The type of the App Configuration Key. It can either be `kv` (simple [key/value](https://docs.microsoft.com/azure/azure-app-configuration/concept-key-value)) or `vault` (where the value is a reference to a [Key Vault Secret](https://azure.microsoft.com/en-gb/services/key-vault/).
*
*/
public String type() {
return this.type;
}
/**
* @return The value of the App Configuration Key.
*
*/
public String value() {
return this.value;
}
/**
* @return The ID of the vault secret this App Configuration Key refers to, when `type` is `vault`.
*
*/
public String vaultKeyReference() {
return this.vaultKeyReference;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetConfigurationKeyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String configurationStoreId;
private String contentType;
private String etag;
private String id;
private String key;
private @Nullable String label;
private Boolean locked;
private Map tags;
private String type;
private String value;
private String vaultKeyReference;
public Builder() {}
public Builder(GetConfigurationKeyResult defaults) {
Objects.requireNonNull(defaults);
this.configurationStoreId = defaults.configurationStoreId;
this.contentType = defaults.contentType;
this.etag = defaults.etag;
this.id = defaults.id;
this.key = defaults.key;
this.label = defaults.label;
this.locked = defaults.locked;
this.tags = defaults.tags;
this.type = defaults.type;
this.value = defaults.value;
this.vaultKeyReference = defaults.vaultKeyReference;
}
@CustomType.Setter
public Builder configurationStoreId(String configurationStoreId) {
if (configurationStoreId == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "configurationStoreId");
}
this.configurationStoreId = configurationStoreId;
return this;
}
@CustomType.Setter
public Builder contentType(String contentType) {
if (contentType == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "contentType");
}
this.contentType = contentType;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder label(@Nullable String label) {
this.label = label;
return this;
}
@CustomType.Setter
public Builder locked(Boolean locked) {
if (locked == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "locked");
}
this.locked = locked;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "value");
}
this.value = value;
return this;
}
@CustomType.Setter
public Builder vaultKeyReference(String vaultKeyReference) {
if (vaultKeyReference == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeyResult", "vaultKeyReference");
}
this.vaultKeyReference = vaultKeyReference;
return this;
}
public GetConfigurationKeyResult build() {
final var _resultValue = new GetConfigurationKeyResult();
_resultValue.configurationStoreId = configurationStoreId;
_resultValue.contentType = contentType;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.key = key;
_resultValue.label = label;
_resultValue.locked = locked;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.value = value;
_resultValue.vaultKeyReference = vaultKeyReference;
return _resultValue;
}
}
}