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

com.pulumi.alicloud.cen.RouteServiceArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cen;

import com.pulumi.core.Output;
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 RouteServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final RouteServiceArgs Empty = new RouteServiceArgs();

    /**
     * The region of the network instances that access the cloud services.
     * 
     */
    @Import(name="accessRegionId", required=true)
    private Output accessRegionId;

    /**
     * @return The region of the network instances that access the cloud services.
     * 
     */
    public Output accessRegionId() {
        return this.accessRegionId;
    }

    /**
     * The ID of the CEN instance.
     * 
     */
    @Import(name="cenId", required=true)
    private Output cenId;

    /**
     * @return The ID of the CEN instance.
     * 
     */
    public Output cenId() {
        return this.cenId;
    }

    /**
     * The description of the cloud service.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the cloud service.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The domain name or IP address of the cloud service.
     * 
     */
    @Import(name="host", required=true)
    private Output host;

    /**
     * @return The domain name or IP address of the cloud service.
     * 
     */
    public Output host() {
        return this.host;
    }

    /**
     * The region of the cloud service.
     * 
     */
    @Import(name="hostRegionId", required=true)
    private Output hostRegionId;

    /**
     * @return The region of the cloud service.
     * 
     */
    public Output hostRegionId() {
        return this.hostRegionId;
    }

    /**
     * The VPC associated with the cloud service.
     * 
     * > **NOTE:** The values of `host_region_id` and `access_region_id` must be consistent.
     * 
     */
    @Import(name="hostVpcId", required=true)
    private Output hostVpcId;

    /**
     * @return The VPC associated with the cloud service.
     * 
     * > **NOTE:** The values of `host_region_id` and `access_region_id` must be consistent.
     * 
     */
    public Output hostVpcId() {
        return this.hostVpcId;
    }

    private RouteServiceArgs() {}

    private RouteServiceArgs(RouteServiceArgs $) {
        this.accessRegionId = $.accessRegionId;
        this.cenId = $.cenId;
        this.description = $.description;
        this.host = $.host;
        this.hostRegionId = $.hostRegionId;
        this.hostVpcId = $.hostVpcId;
    }

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

    public static final class Builder {
        private RouteServiceArgs $;

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

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

        /**
         * @param accessRegionId The region of the network instances that access the cloud services.
         * 
         * @return builder
         * 
         */
        public Builder accessRegionId(Output accessRegionId) {
            $.accessRegionId = accessRegionId;
            return this;
        }

        /**
         * @param accessRegionId The region of the network instances that access the cloud services.
         * 
         * @return builder
         * 
         */
        public Builder accessRegionId(String accessRegionId) {
            return accessRegionId(Output.of(accessRegionId));
        }

        /**
         * @param cenId The ID of the CEN instance.
         * 
         * @return builder
         * 
         */
        public Builder cenId(Output cenId) {
            $.cenId = cenId;
            return this;
        }

        /**
         * @param cenId The ID of the CEN instance.
         * 
         * @return builder
         * 
         */
        public Builder cenId(String cenId) {
            return cenId(Output.of(cenId));
        }

        /**
         * @param description The description of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param host The domain name or IP address of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder host(Output host) {
            $.host = host;
            return this;
        }

        /**
         * @param host The domain name or IP address of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder host(String host) {
            return host(Output.of(host));
        }

        /**
         * @param hostRegionId The region of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder hostRegionId(Output hostRegionId) {
            $.hostRegionId = hostRegionId;
            return this;
        }

        /**
         * @param hostRegionId The region of the cloud service.
         * 
         * @return builder
         * 
         */
        public Builder hostRegionId(String hostRegionId) {
            return hostRegionId(Output.of(hostRegionId));
        }

        /**
         * @param hostVpcId The VPC associated with the cloud service.
         * 
         * > **NOTE:** The values of `host_region_id` and `access_region_id` must be consistent.
         * 
         * @return builder
         * 
         */
        public Builder hostVpcId(Output hostVpcId) {
            $.hostVpcId = hostVpcId;
            return this;
        }

        /**
         * @param hostVpcId The VPC associated with the cloud service.
         * 
         * > **NOTE:** The values of `host_region_id` and `access_region_id` must be consistent.
         * 
         * @return builder
         * 
         */
        public Builder hostVpcId(String hostVpcId) {
            return hostVpcId(Output.of(hostVpcId));
        }

        public RouteServiceArgs build() {
            if ($.accessRegionId == null) {
                throw new MissingRequiredPropertyException("RouteServiceArgs", "accessRegionId");
            }
            if ($.cenId == null) {
                throw new MissingRequiredPropertyException("RouteServiceArgs", "cenId");
            }
            if ($.host == null) {
                throw new MissingRequiredPropertyException("RouteServiceArgs", "host");
            }
            if ($.hostRegionId == null) {
                throw new MissingRequiredPropertyException("RouteServiceArgs", "hostRegionId");
            }
            if ($.hostVpcId == null) {
                throw new MissingRequiredPropertyException("RouteServiceArgs", "hostVpcId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy