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

com.pulumi.aws.alb.inputs.GetTargetGroupArgs 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.aws.alb.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetTargetGroupArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetTargetGroupArgs Empty = new GetTargetGroupArgs();

    /**
     * Full ARN of the target group.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return Full ARN of the target group.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    @Import(name="loadBalancingAnomalyMitigation")
    private @Nullable Output loadBalancingAnomalyMitigation;

    public Optional> loadBalancingAnomalyMitigation() {
        return Optional.ofNullable(this.loadBalancingAnomalyMitigation);
    }

    /**
     * Unique name of the target group.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Unique name of the target group.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Mapping of tags, each pair of which must exactly match a pair on the desired target group.
     * 
     * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Mapping of tags, each pair of which must exactly match a pair on the desired target group.
     * 
     * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetTargetGroupArgs() {}

    private GetTargetGroupArgs(GetTargetGroupArgs $) {
        this.arn = $.arn;
        this.loadBalancingAnomalyMitigation = $.loadBalancingAnomalyMitigation;
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetTargetGroupArgs $;

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

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

        /**
         * @param arn Full ARN of the target group.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn Full ARN of the target group.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        public Builder loadBalancingAnomalyMitigation(@Nullable Output loadBalancingAnomalyMitigation) {
            $.loadBalancingAnomalyMitigation = loadBalancingAnomalyMitigation;
            return this;
        }

        public Builder loadBalancingAnomalyMitigation(String loadBalancingAnomalyMitigation) {
            return loadBalancingAnomalyMitigation(Output.of(loadBalancingAnomalyMitigation));
        }

        /**
         * @param name Unique name of the target group.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name of the target group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags Mapping of tags, each pair of which must exactly match a pair on the desired target group.
         * 
         * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Mapping of tags, each pair of which must exactly match a pair on the desired target group.
         * 
         * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public GetTargetGroupArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy