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

com.pulumi.alicloud.bastionhost.HostArgs 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.bastionhost;

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 HostArgs extends com.pulumi.resources.ResourceArgs {

    public static final HostArgs Empty = new HostArgs();

    /**
     * Specify the new create a host of address types. Valid values: `Public`: the IP address of a Public network. `Private`: Private network address.
     * 
     */
    @Import(name="activeAddressType", required=true)
    private Output activeAddressType;

    /**
     * @return Specify the new create a host of address types. Valid values: `Public`: the IP address of a Public network. `Private`: Private network address.
     * 
     */
    public Output activeAddressType() {
        return this.activeAddressType;
    }

    /**
     * Specify a host of notes, supports up to 500 characters.
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Specify a host of notes, supports up to 500 characters.
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * Specify the new create a host name of the supports up to 128 characters.
     * 
     */
    @Import(name="hostName", required=true)
    private Output hostName;

    /**
     * @return Specify the new create a host name of the supports up to 128 characters.
     * 
     */
    public Output hostName() {
        return this.hostName;
    }

    /**
     * Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. **NOTE:**  This parameter is required if the `active_address_type` parameter is set to `Private`.
     * 
     */
    @Import(name="hostPrivateAddress")
    private @Nullable Output hostPrivateAddress;

    /**
     * @return Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. **NOTE:**  This parameter is required if the `active_address_type` parameter is set to `Private`.
     * 
     */
    public Optional> hostPrivateAddress() {
        return Optional.ofNullable(this.hostPrivateAddress);
    }

    /**
     * Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
     * 
     */
    @Import(name="hostPublicAddress")
    private @Nullable Output hostPublicAddress;

    /**
     * @return Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
     * 
     */
    public Optional> hostPublicAddress() {
        return Optional.ofNullable(this.hostPublicAddress);
    }

    /**
     * Specify the new create a host where the Bastion host ID of.
     * 
     */
    @Import(name="instanceId", required=true)
    private Output instanceId;

    /**
     * @return Specify the new create a host where the Bastion host ID of.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }

    /**
     * The instance region id.
     * 
     */
    @Import(name="instanceRegionId")
    private @Nullable Output instanceRegionId;

    /**
     * @return The instance region id.
     * 
     */
    public Optional> instanceRegionId() {
        return Optional.ofNullable(this.instanceRegionId);
    }

    /**
     * Specify the new create the host's operating system. Valid values: `Linux`,`Windows`.
     * 
     */
    @Import(name="osType", required=true)
    private Output osType;

    /**
     * @return Specify the new create the host's operating system. Valid values: `Linux`,`Windows`.
     * 
     */
    public Output osType() {
        return this.osType;
    }

    /**
     * Specify the new create a host of source. Valid values:
     * * `Local`: localhost
     * * `Ecs`:ECS instance
     * * `Rds`:RDS exclusive cluster host.
     * 
     */
    @Import(name="source", required=true)
    private Output source;

    /**
     * @return Specify the new create a host of source. Valid values:
     * * `Local`: localhost
     * * `Ecs`:ECS instance
     * * `Rds`:RDS exclusive cluster host.
     * 
     */
    public Output source() {
        return this.source;
    }

    /**
     * Specify the newly created ECS instance ID or dedicated cluster host ID. **NOTE:** This parameter is required if the `source` parameter is set to `Ecs` or `Rds`.
     * 
     */
    @Import(name="sourceInstanceId")
    private @Nullable Output sourceInstanceId;

    /**
     * @return Specify the newly created ECS instance ID or dedicated cluster host ID. **NOTE:** This parameter is required if the `source` parameter is set to `Ecs` or `Rds`.
     * 
     */
    public Optional> sourceInstanceId() {
        return Optional.ofNullable(this.sourceInstanceId);
    }

    private HostArgs() {}

    private HostArgs(HostArgs $) {
        this.activeAddressType = $.activeAddressType;
        this.comment = $.comment;
        this.hostName = $.hostName;
        this.hostPrivateAddress = $.hostPrivateAddress;
        this.hostPublicAddress = $.hostPublicAddress;
        this.instanceId = $.instanceId;
        this.instanceRegionId = $.instanceRegionId;
        this.osType = $.osType;
        this.source = $.source;
        this.sourceInstanceId = $.sourceInstanceId;
    }

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

    public static final class Builder {
        private HostArgs $;

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

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

        /**
         * @param activeAddressType Specify the new create a host of address types. Valid values: `Public`: the IP address of a Public network. `Private`: Private network address.
         * 
         * @return builder
         * 
         */
        public Builder activeAddressType(Output activeAddressType) {
            $.activeAddressType = activeAddressType;
            return this;
        }

        /**
         * @param activeAddressType Specify the new create a host of address types. Valid values: `Public`: the IP address of a Public network. `Private`: Private network address.
         * 
         * @return builder
         * 
         */
        public Builder activeAddressType(String activeAddressType) {
            return activeAddressType(Output.of(activeAddressType));
        }

        /**
         * @param comment Specify a host of notes, supports up to 500 characters.
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Specify a host of notes, supports up to 500 characters.
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param hostName Specify the new create a host name of the supports up to 128 characters.
         * 
         * @return builder
         * 
         */
        public Builder hostName(Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName Specify the new create a host name of the supports up to 128 characters.
         * 
         * @return builder
         * 
         */
        public Builder hostName(String hostName) {
            return hostName(Output.of(hostName));
        }

        /**
         * @param hostPrivateAddress Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. **NOTE:**  This parameter is required if the `active_address_type` parameter is set to `Private`.
         * 
         * @return builder
         * 
         */
        public Builder hostPrivateAddress(@Nullable Output hostPrivateAddress) {
            $.hostPrivateAddress = hostPrivateAddress;
            return this;
        }

        /**
         * @param hostPrivateAddress Specify the new create a host of the private network address, it is possible to use the domain name or IP ADDRESS. **NOTE:**  This parameter is required if the `active_address_type` parameter is set to `Private`.
         * 
         * @return builder
         * 
         */
        public Builder hostPrivateAddress(String hostPrivateAddress) {
            return hostPrivateAddress(Output.of(hostPrivateAddress));
        }

        /**
         * @param hostPublicAddress Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
         * 
         * @return builder
         * 
         */
        public Builder hostPublicAddress(@Nullable Output hostPublicAddress) {
            $.hostPublicAddress = hostPublicAddress;
            return this;
        }

        /**
         * @param hostPublicAddress Specify the new create a host of the IP address of a public network, it is possible to use the domain name or IP ADDRESS.
         * 
         * @return builder
         * 
         */
        public Builder hostPublicAddress(String hostPublicAddress) {
            return hostPublicAddress(Output.of(hostPublicAddress));
        }

        /**
         * @param instanceId Specify the new create a host where the Bastion host ID of.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

        /**
         * @param instanceId Specify the new create a host where the Bastion host ID of.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(String instanceId) {
            return instanceId(Output.of(instanceId));
        }

        /**
         * @param instanceRegionId The instance region id.
         * 
         * @return builder
         * 
         */
        public Builder instanceRegionId(@Nullable Output instanceRegionId) {
            $.instanceRegionId = instanceRegionId;
            return this;
        }

        /**
         * @param instanceRegionId The instance region id.
         * 
         * @return builder
         * 
         */
        public Builder instanceRegionId(String instanceRegionId) {
            return instanceRegionId(Output.of(instanceRegionId));
        }

        /**
         * @param osType Specify the new create the host's operating system. Valid values: `Linux`,`Windows`.
         * 
         * @return builder
         * 
         */
        public Builder osType(Output osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType Specify the new create the host's operating system. Valid values: `Linux`,`Windows`.
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param source Specify the new create a host of source. Valid values:
         * * `Local`: localhost
         * * `Ecs`:ECS instance
         * * `Rds`:RDS exclusive cluster host.
         * 
         * @return builder
         * 
         */
        public Builder source(Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source Specify the new create a host of source. Valid values:
         * * `Local`: localhost
         * * `Ecs`:ECS instance
         * * `Rds`:RDS exclusive cluster host.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        /**
         * @param sourceInstanceId Specify the newly created ECS instance ID or dedicated cluster host ID. **NOTE:** This parameter is required if the `source` parameter is set to `Ecs` or `Rds`.
         * 
         * @return builder
         * 
         */
        public Builder sourceInstanceId(@Nullable Output sourceInstanceId) {
            $.sourceInstanceId = sourceInstanceId;
            return this;
        }

        /**
         * @param sourceInstanceId Specify the newly created ECS instance ID or dedicated cluster host ID. **NOTE:** This parameter is required if the `source` parameter is set to `Ecs` or `Rds`.
         * 
         * @return builder
         * 
         */
        public Builder sourceInstanceId(String sourceInstanceId) {
            return sourceInstanceId(Output.of(sourceInstanceId));
        }

        public HostArgs build() {
            if ($.activeAddressType == null) {
                throw new MissingRequiredPropertyException("HostArgs", "activeAddressType");
            }
            if ($.hostName == null) {
                throw new MissingRequiredPropertyException("HostArgs", "hostName");
            }
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("HostArgs", "instanceId");
            }
            if ($.osType == null) {
                throw new MissingRequiredPropertyException("HostArgs", "osType");
            }
            if ($.source == null) {
                throw new MissingRequiredPropertyException("HostArgs", "source");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy