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

com.pulumi.aws.route53.inputs.RecordGeolocationRoutingPolicyArgs 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.route53.inputs;

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;


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

    public static final RecordGeolocationRoutingPolicyArgs Empty = new RecordGeolocationRoutingPolicyArgs();

    /**
     * A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either `continent` or `country` must be specified.
     * 
     */
    @Import(name="continent")
    private @Nullable Output continent;

    /**
     * @return A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either `continent` or `country` must be specified.
     * 
     */
    public Optional> continent() {
        return Optional.ofNullable(this.continent);
    }

    /**
     * A two-character country code or `*` to indicate a default resource record set.
     * 
     */
    @Import(name="country")
    private @Nullable Output country;

    /**
     * @return A two-character country code or `*` to indicate a default resource record set.
     * 
     */
    public Optional> country() {
        return Optional.ofNullable(this.country);
    }

    /**
     * A subdivision code for a country.
     * 
     */
    @Import(name="subdivision")
    private @Nullable Output subdivision;

    /**
     * @return A subdivision code for a country.
     * 
     */
    public Optional> subdivision() {
        return Optional.ofNullable(this.subdivision);
    }

    private RecordGeolocationRoutingPolicyArgs() {}

    private RecordGeolocationRoutingPolicyArgs(RecordGeolocationRoutingPolicyArgs $) {
        this.continent = $.continent;
        this.country = $.country;
        this.subdivision = $.subdivision;
    }

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

    public static final class Builder {
        private RecordGeolocationRoutingPolicyArgs $;

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

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

        /**
         * @param continent A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either `continent` or `country` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder continent(@Nullable Output continent) {
            $.continent = continent;
            return this;
        }

        /**
         * @param continent A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either `continent` or `country` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder continent(String continent) {
            return continent(Output.of(continent));
        }

        /**
         * @param country A two-character country code or `*` to indicate a default resource record set.
         * 
         * @return builder
         * 
         */
        public Builder country(@Nullable Output country) {
            $.country = country;
            return this;
        }

        /**
         * @param country A two-character country code or `*` to indicate a default resource record set.
         * 
         * @return builder
         * 
         */
        public Builder country(String country) {
            return country(Output.of(country));
        }

        /**
         * @param subdivision A subdivision code for a country.
         * 
         * @return builder
         * 
         */
        public Builder subdivision(@Nullable Output subdivision) {
            $.subdivision = subdivision;
            return this;
        }

        /**
         * @param subdivision A subdivision code for a country.
         * 
         * @return builder
         * 
         */
        public Builder subdivision(String subdivision) {
            return subdivision(Output.of(subdivision));
        }

        public RecordGeolocationRoutingPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy