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

com.pulumi.azurenative.apimanagement.NamedValueArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.apimanagement;

import com.pulumi.azurenative.apimanagement.inputs.KeyVaultContractCreatePropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 NamedValueArgs extends com.pulumi.resources.ResourceArgs {

    public static final NamedValueArgs Empty = new NamedValueArgs();

    /**
     * Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * KeyVault location details of the namedValue.
     * 
     */
    @Import(name="keyVault")
    private @Nullable Output keyVault;

    /**
     * @return KeyVault location details of the namedValue.
     * 
     */
    public Optional> keyVault() {
        return Optional.ofNullable(this.keyVault);
    }

    /**
     * Identifier of the NamedValue.
     * 
     */
    @Import(name="namedValueId")
    private @Nullable Output namedValueId;

    /**
     * @return Identifier of the NamedValue.
     * 
     */
    public Optional> namedValueId() {
        return Optional.ofNullable(this.namedValueId);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Determines whether the value is a secret and should be encrypted or not. Default value is false.
     * 
     */
    @Import(name="secret")
    private @Nullable Output secret;

    /**
     * @return Determines whether the value is a secret and should be encrypted or not. Default value is false.
     * 
     */
    public Optional> secret() {
        return Optional.ofNullable(this.secret);
    }

    /**
     * The name of the API Management service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The name of the API Management service.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * Optional tags that when provided can be used to filter the NamedValue list.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Optional tags that when provided can be used to filter the NamedValue list.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private NamedValueArgs() {}

    private NamedValueArgs(NamedValueArgs $) {
        this.displayName = $.displayName;
        this.keyVault = $.keyVault;
        this.namedValueId = $.namedValueId;
        this.resourceGroupName = $.resourceGroupName;
        this.secret = $.secret;
        this.serviceName = $.serviceName;
        this.tags = $.tags;
        this.value = $.value;
    }

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

    public static final class Builder {
        private NamedValueArgs $;

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

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

        /**
         * @param displayName Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param keyVault KeyVault location details of the namedValue.
         * 
         * @return builder
         * 
         */
        public Builder keyVault(@Nullable Output keyVault) {
            $.keyVault = keyVault;
            return this;
        }

        /**
         * @param keyVault KeyVault location details of the namedValue.
         * 
         * @return builder
         * 
         */
        public Builder keyVault(KeyVaultContractCreatePropertiesArgs keyVault) {
            return keyVault(Output.of(keyVault));
        }

        /**
         * @param namedValueId Identifier of the NamedValue.
         * 
         * @return builder
         * 
         */
        public Builder namedValueId(@Nullable Output namedValueId) {
            $.namedValueId = namedValueId;
            return this;
        }

        /**
         * @param namedValueId Identifier of the NamedValue.
         * 
         * @return builder
         * 
         */
        public Builder namedValueId(String namedValueId) {
            return namedValueId(Output.of(namedValueId));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param secret Determines whether the value is a secret and should be encrypted or not. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder secret(@Nullable Output secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret Determines whether the value is a secret and should be encrypted or not. Default value is false.
         * 
         * @return builder
         * 
         */
        public Builder secret(Boolean secret) {
            return secret(Output.of(secret));
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param tags Optional tags that when provided can be used to filter the NamedValue list.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Optional tags that when provided can be used to filter the NamedValue list.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags Optional tags that when provided can be used to filter the NamedValue list.
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        /**
         * @param value Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public NamedValueArgs build() {
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("NamedValueArgs", "displayName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NamedValueArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("NamedValueArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy