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

com.pulumi.aws.globalaccelerator.CustomRoutingAcceleratorArgs 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.globalaccelerator;

import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingAcceleratorAttributesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CustomRoutingAcceleratorArgs Empty = new CustomRoutingAcceleratorArgs();

    /**
     * The attributes of the accelerator. Fields documented below.
     * 
     */
    @Import(name="attributes")
    private @Nullable Output attributes;

    /**
     * @return The attributes of the accelerator. Fields documented below.
     * 
     */
    public Optional> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    /**
     * Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The IP address type that an accelerator supports. For a custom routing accelerator, the value must be `"IPV4"`.
     * 
     */
    @Import(name="ipAddressType")
    private @Nullable Output ipAddressType;

    /**
     * @return The IP address type that an accelerator supports. For a custom routing accelerator, the value must be `"IPV4"`.
     * 
     */
    public Optional> ipAddressType() {
        return Optional.ofNullable(this.ipAddressType);
    }

    /**
     * The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.
     * 
     */
    @Import(name="ipAddresses")
    private @Nullable Output> ipAddresses;

    /**
     * @return The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.
     * 
     */
    public Optional>> ipAddresses() {
        return Optional.ofNullable(this.ipAddresses);
    }

    /**
     * The name of a custom routing accelerator.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of a custom routing accelerator.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private CustomRoutingAcceleratorArgs() {}

    private CustomRoutingAcceleratorArgs(CustomRoutingAcceleratorArgs $) {
        this.attributes = $.attributes;
        this.enabled = $.enabled;
        this.ipAddressType = $.ipAddressType;
        this.ipAddresses = $.ipAddresses;
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private CustomRoutingAcceleratorArgs $;

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

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

        /**
         * @param attributes The attributes of the accelerator. Fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder attributes(@Nullable Output attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes The attributes of the accelerator. Fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder attributes(CustomRoutingAcceleratorAttributesArgs attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param enabled Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param ipAddressType The IP address type that an accelerator supports. For a custom routing accelerator, the value must be `"IPV4"`.
         * 
         * @return builder
         * 
         */
        public Builder ipAddressType(@Nullable Output ipAddressType) {
            $.ipAddressType = ipAddressType;
            return this;
        }

        /**
         * @param ipAddressType The IP address type that an accelerator supports. For a custom routing accelerator, the value must be `"IPV4"`.
         * 
         * @return builder
         * 
         */
        public Builder ipAddressType(String ipAddressType) {
            return ipAddressType(Output.of(ipAddressType));
        }

        /**
         * @param ipAddresses The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.
         * 
         * @return builder
         * 
         */
        public Builder ipAddresses(@Nullable Output> ipAddresses) {
            $.ipAddresses = ipAddresses;
            return this;
        }

        /**
         * @param ipAddresses The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.
         * 
         * @return builder
         * 
         */
        public Builder ipAddresses(List ipAddresses) {
            return ipAddresses(Output.of(ipAddresses));
        }

        /**
         * @param ipAddresses The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.
         * 
         * @return builder
         * 
         */
        public Builder ipAddresses(String... ipAddresses) {
            return ipAddresses(List.of(ipAddresses));
        }

        /**
         * @param name The name of a custom routing accelerator.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of a custom routing accelerator.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public CustomRoutingAcceleratorArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy