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

com.pulumi.aws.route53.inputs.GetTrafficPolicyDocumentRuleRegion Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.route53.inputs;

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


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

    public static final GetTrafficPolicyDocumentRuleRegion Empty = new GetTrafficPolicyDocumentRuleRegion();

    /**
     * References to an endpoint.
     * 
     */
    @Import(name="endpointReference")
    private @Nullable String endpointReference;

    /**
     * @return References to an endpoint.
     * 
     */
    public Optional endpointReference() {
        return Optional.ofNullable(this.endpointReference);
    }

    /**
     * Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
     * 
     */
    @Import(name="evaluateTargetHealth")
    private @Nullable Boolean evaluateTargetHealth;

    /**
     * @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
     * 
     */
    public Optional evaluateTargetHealth() {
        return Optional.ofNullable(this.evaluateTargetHealth);
    }

    /**
     * If you want to associate a health check with the endpoint or rule.
     * 
     */
    @Import(name="healthCheck")
    private @Nullable String healthCheck;

    /**
     * @return If you want to associate a health check with the endpoint or rule.
     * 
     */
    public Optional healthCheck() {
        return Optional.ofNullable(this.healthCheck);
    }

    /**
     * Region code for the AWS Region that you created the resource in.
     * 
     */
    @Import(name="region")
    private @Nullable String region;

    /**
     * @return Region code for the AWS Region that you created the resource in.
     * 
     */
    public Optional region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * References to a rule.
     * 
     */
    @Import(name="ruleReference")
    private @Nullable String ruleReference;

    /**
     * @return References to a rule.
     * 
     */
    public Optional ruleReference() {
        return Optional.ofNullable(this.ruleReference);
    }

    private GetTrafficPolicyDocumentRuleRegion() {}

    private GetTrafficPolicyDocumentRuleRegion(GetTrafficPolicyDocumentRuleRegion $) {
        this.endpointReference = $.endpointReference;
        this.evaluateTargetHealth = $.evaluateTargetHealth;
        this.healthCheck = $.healthCheck;
        this.region = $.region;
        this.ruleReference = $.ruleReference;
    }

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

    public static final class Builder {
        private GetTrafficPolicyDocumentRuleRegion $;

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

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

        /**
         * @param endpointReference References to an endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointReference(@Nullable String endpointReference) {
            $.endpointReference = endpointReference;
            return this;
        }

        /**
         * @param evaluateTargetHealth Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
         * 
         * @return builder
         * 
         */
        public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) {
            $.evaluateTargetHealth = evaluateTargetHealth;
            return this;
        }

        /**
         * @param healthCheck If you want to associate a health check with the endpoint or rule.
         * 
         * @return builder
         * 
         */
        public Builder healthCheck(@Nullable String healthCheck) {
            $.healthCheck = healthCheck;
            return this;
        }

        /**
         * @param region Region code for the AWS Region that you created the resource in.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable String region) {
            $.region = region;
            return this;
        }

        /**
         * @param ruleReference References to a rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleReference(@Nullable String ruleReference) {
            $.ruleReference = ruleReference;
            return this;
        }

        public GetTrafficPolicyDocumentRuleRegion build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy