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

com.pulumi.consul.inputs.ConfigEntryServiceIntentionsState Maven / Gradle / Ivy

There is a newer version: 3.13.0-alpha.1732771629
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.consul.inputs;

import com.pulumi.consul.inputs.ConfigEntryServiceIntentionsJwtArgs;
import com.pulumi.consul.inputs.ConfigEntryServiceIntentionsSourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConfigEntryServiceIntentionsState Empty = new ConfigEntryServiceIntentionsState();

    /**
     * Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
     * 
     */
    @Import(name="jwts")
    private @Nullable Output> jwts;

    /**
     * @return Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
     * 
     */
    public Optional>> jwts() {
        return Optional.ofNullable(this.jwts);
    }

    /**
     * Specifies key-value pairs to add to the KV store.
     * 
     */
    @Import(name="meta")
    private @Nullable Output> meta;

    /**
     * @return Specifies key-value pairs to add to the KV store.
     * 
     */
    public Optional>> meta() {
        return Optional.ofNullable(this.meta);
    }

    /**
     * Specifies a name of the destination service for all intentions defined in the configuration entry.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies a name of the destination service for all intentions defined in the configuration entry.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies the namespace to apply the configuration entry.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return Specifies the namespace to apply the configuration entry.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * Specifies the admin partition to apply the configuration entry.
     * 
     */
    @Import(name="partition")
    private @Nullable Output partition;

    /**
     * @return Specifies the admin partition to apply the configuration entry.
     * 
     */
    public Optional> partition() {
        return Optional.ofNullable(this.partition);
    }

    /**
     * List of configurations that define intention sources and the authorization granted to the sources.
     * 
     */
    @Import(name="sources")
    private @Nullable Output> sources;

    /**
     * @return List of configurations that define intention sources and the authorization granted to the sources.
     * 
     */
    public Optional>> sources() {
        return Optional.ofNullable(this.sources);
    }

    private ConfigEntryServiceIntentionsState() {}

    private ConfigEntryServiceIntentionsState(ConfigEntryServiceIntentionsState $) {
        this.jwts = $.jwts;
        this.meta = $.meta;
        this.name = $.name;
        this.namespace = $.namespace;
        this.partition = $.partition;
        this.sources = $.sources;
    }

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

    public static final class Builder {
        private ConfigEntryServiceIntentionsState $;

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

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

        /**
         * @param jwts Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
         * 
         * @return builder
         * 
         */
        public Builder jwts(@Nullable Output> jwts) {
            $.jwts = jwts;
            return this;
        }

        /**
         * @param jwts Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
         * 
         * @return builder
         * 
         */
        public Builder jwts(List jwts) {
            return jwts(Output.of(jwts));
        }

        /**
         * @param jwts Specifies a JSON Web Token provider configured in a JWT provider configuration entry, as well as additional configurations for verifying a service's JWT before authorizing communication between services
         * 
         * @return builder
         * 
         */
        public Builder jwts(ConfigEntryServiceIntentionsJwtArgs... jwts) {
            return jwts(List.of(jwts));
        }

        /**
         * @param meta Specifies key-value pairs to add to the KV store.
         * 
         * @return builder
         * 
         */
        public Builder meta(@Nullable Output> meta) {
            $.meta = meta;
            return this;
        }

        /**
         * @param meta Specifies key-value pairs to add to the KV store.
         * 
         * @return builder
         * 
         */
        public Builder meta(Map meta) {
            return meta(Output.of(meta));
        }

        /**
         * @param name Specifies a name of the destination service for all intentions defined in the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies a name of the destination service for all intentions defined in the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespace Specifies the namespace to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace Specifies the namespace to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param partition Specifies the admin partition to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder partition(@Nullable Output partition) {
            $.partition = partition;
            return this;
        }

        /**
         * @param partition Specifies the admin partition to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder partition(String partition) {
            return partition(Output.of(partition));
        }

        /**
         * @param sources List of configurations that define intention sources and the authorization granted to the sources.
         * 
         * @return builder
         * 
         */
        public Builder sources(@Nullable Output> sources) {
            $.sources = sources;
            return this;
        }

        /**
         * @param sources List of configurations that define intention sources and the authorization granted to the sources.
         * 
         * @return builder
         * 
         */
        public Builder sources(List sources) {
            return sources(Output.of(sources));
        }

        /**
         * @param sources List of configurations that define intention sources and the authorization granted to the sources.
         * 
         * @return builder
         * 
         */
        public Builder sources(ConfigEntryServiceIntentionsSourceArgs... sources) {
            return sources(List.of(sources));
        }

        public ConfigEntryServiceIntentionsState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy