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

com.pulumi.azurenative.awsconnector.inputs.AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs 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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.AnomalyDetectionArgs;
import com.pulumi.azurenative.awsconnector.inputs.TargetDescriptionArgs;
import com.pulumi.azurenative.awsconnector.inputs.TargetHealthArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of awsElasticLoadBalancingv2TargetHealthDescription
 * 
 */
public final class AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs Empty = new AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs();

    /**
     * <p>The anomaly detection result for the target.</p> <p>If no anomalies were detected, the result is <code>normal</code>.</p> <p>If anomalies were detected, the result is <code>anomalous</code>.</p>
     * 
     */
    @Import(name="anomalyDetection")
    private @Nullable Output anomalyDetection;

    /**
     * @return <p>The anomaly detection result for the target.</p> <p>If no anomalies were detected, the result is <code>normal</code>.</p> <p>If anomalies were detected, the result is <code>anomalous</code>.</p>
     * 
     */
    public Optional> anomalyDetection() {
        return Optional.ofNullable(this.anomalyDetection);
    }

    /**
     * <p>The port to use to connect with the target.</p>
     * 
     */
    @Import(name="healthCheckPort")
    private @Nullable Output healthCheckPort;

    /**
     * @return <p>The port to use to connect with the target.</p>
     * 
     */
    public Optional> healthCheckPort() {
        return Optional.ofNullable(this.healthCheckPort);
    }

    /**
     * <p>The description of the target.</p>
     * 
     */
    @Import(name="target")
    private @Nullable Output target;

    /**
     * @return <p>The description of the target.</p>
     * 
     */
    public Optional> target() {
        return Optional.ofNullable(this.target);
    }

    /**
     * <p>The health information for the target.</p>
     * 
     */
    @Import(name="targetHealth")
    private @Nullable Output targetHealth;

    /**
     * @return <p>The health information for the target.</p>
     * 
     */
    public Optional> targetHealth() {
        return Optional.ofNullable(this.targetHealth);
    }

    private AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs() {}

    private AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs(AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs $) {
        this.anomalyDetection = $.anomalyDetection;
        this.healthCheckPort = $.healthCheckPort;
        this.target = $.target;
        this.targetHealth = $.targetHealth;
    }

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

    public static final class Builder {
        private AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs $;

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

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

        /**
         * @param anomalyDetection <p>The anomaly detection result for the target.</p> <p>If no anomalies were detected, the result is <code>normal</code>.</p> <p>If anomalies were detected, the result is <code>anomalous</code>.</p>
         * 
         * @return builder
         * 
         */
        public Builder anomalyDetection(@Nullable Output anomalyDetection) {
            $.anomalyDetection = anomalyDetection;
            return this;
        }

        /**
         * @param anomalyDetection <p>The anomaly detection result for the target.</p> <p>If no anomalies were detected, the result is <code>normal</code>.</p> <p>If anomalies were detected, the result is <code>anomalous</code>.</p>
         * 
         * @return builder
         * 
         */
        public Builder anomalyDetection(AnomalyDetectionArgs anomalyDetection) {
            return anomalyDetection(Output.of(anomalyDetection));
        }

        /**
         * @param healthCheckPort <p>The port to use to connect with the target.</p>
         * 
         * @return builder
         * 
         */
        public Builder healthCheckPort(@Nullable Output healthCheckPort) {
            $.healthCheckPort = healthCheckPort;
            return this;
        }

        /**
         * @param healthCheckPort <p>The port to use to connect with the target.</p>
         * 
         * @return builder
         * 
         */
        public Builder healthCheckPort(String healthCheckPort) {
            return healthCheckPort(Output.of(healthCheckPort));
        }

        /**
         * @param target <p>The description of the target.</p>
         * 
         * @return builder
         * 
         */
        public Builder target(@Nullable Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target <p>The description of the target.</p>
         * 
         * @return builder
         * 
         */
        public Builder target(TargetDescriptionArgs target) {
            return target(Output.of(target));
        }

        /**
         * @param targetHealth <p>The health information for the target.</p>
         * 
         * @return builder
         * 
         */
        public Builder targetHealth(@Nullable Output targetHealth) {
            $.targetHealth = targetHealth;
            return this;
        }

        /**
         * @param targetHealth <p>The health information for the target.</p>
         * 
         * @return builder
         * 
         */
        public Builder targetHealth(TargetHealthArgs targetHealth) {
            return targetHealth(Output.of(targetHealth));
        }

        public AwsElasticLoadBalancingv2TargetHealthDescriptionPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy