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

com.pulumi.aws.route53.inputs.GetTrafficPolicyDocumentEndpoint 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetTrafficPolicyDocumentEndpoint Empty = new GetTrafficPolicyDocumentEndpoint();

    /**
     * ID of an endpoint you want to assign.
     * 
     */
    @Import(name="id", required=true)
    private String id;

    /**
     * @return ID of an endpoint you want to assign.
     * 
     */
    public String id() {
        return this.id;
    }

    /**
     * To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for `region`.
     * 
     */
    @Import(name="region")
    private @Nullable String region;

    /**
     * @return To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for `region`.
     * 
     */
    public Optional region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * Type of the endpoint. Valid values are `value`, `cloudfront`, `elastic-load-balancer`, `s3-website`, `application-load-balancer`, `network-load-balancer` and `elastic-beanstalk`
     * 
     */
    @Import(name="type")
    private @Nullable String type;

    /**
     * @return Type of the endpoint. Valid values are `value`, `cloudfront`, `elastic-load-balancer`, `s3-website`, `application-load-balancer`, `network-load-balancer` and `elastic-beanstalk`
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Value of the `type`.
     * 
     */
    @Import(name="value")
    private @Nullable String value;

    /**
     * @return Value of the `type`.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

    private GetTrafficPolicyDocumentEndpoint() {}

    private GetTrafficPolicyDocumentEndpoint(GetTrafficPolicyDocumentEndpoint $) {
        this.id = $.id;
        this.region = $.region;
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private GetTrafficPolicyDocumentEndpoint $;

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

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

        /**
         * @param id ID of an endpoint you want to assign.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            $.id = id;
            return this;
        }

        /**
         * @param region To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for `region`.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable String region) {
            $.region = region;
            return this;
        }

        /**
         * @param type Type of the endpoint. Valid values are `value`, `cloudfront`, `elastic-load-balancer`, `s3-website`, `application-load-balancer`, `network-load-balancer` and `elastic-beanstalk`
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable String type) {
            $.type = type;
            return this;
        }

        /**
         * @param value Value of the `type`.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable String value) {
            $.value = value;
            return this;
        }

        public GetTrafficPolicyDocumentEndpoint build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("GetTrafficPolicyDocumentEndpoint", "id");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy