com.pulumi.azure.appconfiguration.outputs.GetConfigurationKeysItem 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;
@CustomType
public final class GetConfigurationKeysItem {
/**
* @return The content type of the App Configuration Key.
*
*/
private String contentType;
/**
* @return The ETag of the key.
*
*/
private String etag;
/**
* @return The name of the App Configuration Keys to look up.
*
*/
private String key;
/**
* @return The label of the App Configuration Keys tp look up.
*
*/
private 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 GetConfigurationKeysItem() {}
/**
* @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 name of the App Configuration Keys to look up.
*
*/
public String key() {
return this.key;
}
/**
* @return The label of the App Configuration Keys tp look up.
*
*/
public String label() {
return 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(GetConfigurationKeysItem defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String contentType;
private String etag;
private String key;
private String label;
private Boolean locked;
private Map tags;
private String type;
private String value;
private String vaultKeyReference;
public Builder() {}
public Builder(GetConfigurationKeysItem defaults) {
Objects.requireNonNull(defaults);
this.contentType = defaults.contentType;
this.etag = defaults.etag;
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 contentType(String contentType) {
if (contentType == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "contentType");
}
this.contentType = contentType;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder label(String label) {
if (label == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "label");
}
this.label = label;
return this;
}
@CustomType.Setter
public Builder locked(Boolean locked) {
if (locked == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "locked");
}
this.locked = locked;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "value");
}
this.value = value;
return this;
}
@CustomType.Setter
public Builder vaultKeyReference(String vaultKeyReference) {
if (vaultKeyReference == null) {
throw new MissingRequiredPropertyException("GetConfigurationKeysItem", "vaultKeyReference");
}
this.vaultKeyReference = vaultKeyReference;
return this;
}
public GetConfigurationKeysItem build() {
final var _resultValue = new GetConfigurationKeysItem();
_resultValue.contentType = contentType;
_resultValue.etag = etag;
_resultValue.key = key;
_resultValue.label = label;
_resultValue.locked = locked;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.value = value;
_resultValue.vaultKeyReference = vaultKeyReference;
return _resultValue;
}
}
}