All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.apimanagement.inputs.NamedValueState Maven / Gradle / Ivy

// *** 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.apimanagement.inputs;

import com.pulumi.azure.apimanagement.inputs.NamedValueValueFromKeyVaultArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class NamedValueState extends com.pulumi.resources.ResourceArgs {

    public static final NamedValueState Empty = new NamedValueState();

    /**
     * The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="apiManagementName")
    private @Nullable Output apiManagementName;

    /**
     * @return The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> apiManagementName() {
        return Optional.ofNullable(this.apiManagementName);
    }

    /**
     * The display name of this API Management Named Value.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return The display name of this API Management Named Value.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The name of the API Management Named Value. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the API Management Named Value. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`.
     * 
     * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure.
     * 
     */
    @Import(name="secret")
    private @Nullable Output secret;

    /**
     * @return Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`.
     * 
     * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure.
     * 
     */
    public Optional> secret() {
        return Optional.ofNullable(this.secret);
    }

    /**
     * A list of tags to be applied to the API Management Named Value.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A list of tags to be applied to the API Management Named Value.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The value of this API Management Named Value.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value of this API Management Named Value.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    /**
     * A `value_from_key_vault` block as defined below. If specified, `secret` must also be set to `true`.
     * 
     */
    @Import(name="valueFromKeyVault")
    private @Nullable Output valueFromKeyVault;

    /**
     * @return A `value_from_key_vault` block as defined below. If specified, `secret` must also be set to `true`.
     * 
     */
    public Optional> valueFromKeyVault() {
        return Optional.ofNullable(this.valueFromKeyVault);
    }

    private NamedValueState() {}

    private NamedValueState(NamedValueState $) {
        this.apiManagementName = $.apiManagementName;
        this.displayName = $.displayName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.secret = $.secret;
        this.tags = $.tags;
        this.value = $.value;
        this.valueFromKeyVault = $.valueFromKeyVault;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(NamedValueState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private NamedValueState $;

        public Builder() {
            $ = new NamedValueState();
        }

        public Builder(NamedValueState defaults) {
            $ = new NamedValueState(Objects.requireNonNull(defaults));
        }

        /**
         * @param apiManagementName The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(@Nullable Output apiManagementName) {
            $.apiManagementName = apiManagementName;
            return this;
        }

        /**
         * @param apiManagementName The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(String apiManagementName) {
            return apiManagementName(Output.of(apiManagementName));
        }

        /**
         * @param displayName The display name of this API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The display name of this API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param name The name of the API Management Named Value. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the API Management Named Value. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param secret Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`.
         * 
         * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure.
         * 
         * @return builder
         * 
         */
        public Builder secret(@Nullable Output secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`.
         * 
         * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure.
         * 
         * @return builder
         * 
         */
        public Builder secret(Boolean secret) {
            return secret(Output.of(secret));
        }

        /**
         * @param tags A list of tags to be applied to the API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A list of tags to be applied to the API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags A list of tags to be applied to the API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        /**
         * @param value The value of this API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value of this API Management Named Value.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        /**
         * @param valueFromKeyVault A `value_from_key_vault` block as defined below. If specified, `secret` must also be set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder valueFromKeyVault(@Nullable Output valueFromKeyVault) {
            $.valueFromKeyVault = valueFromKeyVault;
            return this;
        }

        /**
         * @param valueFromKeyVault A `value_from_key_vault` block as defined below. If specified, `secret` must also be set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder valueFromKeyVault(NamedValueValueFromKeyVaultArgs valueFromKeyVault) {
            return valueFromKeyVault(Output.of(valueFromKeyVault));
        }

        public NamedValueState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy