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

com.pulumi.aws.route53.inputs.TrafficPolicyState 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.66.3
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.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TrafficPolicyState Empty = new TrafficPolicyState();

    /**
     * Comment for the traffic policy.
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Comment for the traffic policy.
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the [AWS Route53 Traffic Policy document format](https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="document")
    private @Nullable Output document;

    /**
     * @return Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the [AWS Route53 Traffic Policy document format](https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> document() {
        return Optional.ofNullable(this.document);
    }

    /**
     * Name of the traffic policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the traffic policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private TrafficPolicyState() {}

    private TrafficPolicyState(TrafficPolicyState $) {
        this.comment = $.comment;
        this.document = $.document;
        this.name = $.name;
        this.type = $.type;
        this.version = $.version;
    }

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

    public static final class Builder {
        private TrafficPolicyState $;

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

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

        /**
         * @param comment Comment for the traffic policy.
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Comment for the traffic policy.
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param document Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the [AWS Route53 Traffic Policy document format](https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder document(@Nullable Output document) {
            $.document = document;
            return this;
        }

        /**
         * @param document Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the [AWS Route53 Traffic Policy document format](https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder document(String document) {
            return document(Output.of(document));
        }

        /**
         * @param name Name of the traffic policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the traffic policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param type DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param version Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource.
         * 
         * @return builder
         * 
         */
        public Builder version(Integer version) {
            return version(Output.of(version));
        }

        public TrafficPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy