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

com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs 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.vpc.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
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 GetSwitchesArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSwitchesArgs Empty = new GetSwitchesArgs();

    /**
     * Filter results by a specific CIDR block. For example: "172.16.0.0/12".
     * 
     */
    @Import(name="cidrBlock")
    private @Nullable Output cidrBlock;

    /**
     * @return Filter results by a specific CIDR block. For example: "172.16.0.0/12".
     * 
     */
    public Optional> cidrBlock() {
        return Optional.ofNullable(this.cidrBlock);
    }

    /**
     * Specifies whether to precheck this request only. Valid values: `true` and `false`.
     * 
     */
    @Import(name="dryRun")
    private @Nullable Output dryRun;

    /**
     * @return Specifies whether to precheck this request only. Valid values: `true` and `false`.
     * 
     */
    public Optional> dryRun() {
        return Optional.ofNullable(this.dryRun);
    }

    /**
     * A list of vSwitch IDs.
     * 
     */
    @Import(name="ids")
    private @Nullable Output> ids;

    /**
     * @return A list of vSwitch IDs.
     * 
     */
    public Optional>> ids() {
        return Optional.ofNullable(this.ids);
    }

    /**
     * Indicate whether the vSwitch is created by the system.
     * 
     */
    @Import(name="isDefault")
    private @Nullable Output isDefault;

    /**
     * @return Indicate whether the vSwitch is created by the system.
     * 
     */
    public Optional> isDefault() {
        return Optional.ofNullable(this.isDefault);
    }

    /**
     * A regex string to filter results by name.
     * 
     */
    @Import(name="nameRegex")
    private @Nullable Output nameRegex;

    /**
     * @return A regex string to filter results by name.
     * 
     */
    public Optional> nameRegex() {
        return Optional.ofNullable(this.nameRegex);
    }

    /**
     * File name where to save data source results (after running `pulumi preview`).
     * 
     */
    @Import(name="outputFile")
    private @Nullable Output outputFile;

    /**
     * @return File name where to save data source results (after running `pulumi preview`).
     * 
     */
    public Optional> outputFile() {
        return Optional.ofNullable(this.outputFile);
    }

    /**
     * The Id of resource group which VSWitch belongs.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

    /**
     * @return The Id of resource group which VSWitch belongs.
     * 
     */
    public Optional> resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }

    /**
     * The route table ID of the vSwitch.
     * 
     */
    @Import(name="routeTableId")
    private @Nullable Output routeTableId;

    /**
     * @return The route table ID of the vSwitch.
     * 
     */
    public Optional> routeTableId() {
        return Optional.ofNullable(this.routeTableId);
    }

    /**
     * The status of the vSwitch. Valid values: `Available` and `Pending`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of the vSwitch. Valid values: `Available` and `Pending`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * ID of the VPC that owns the vSwitch.
     * 
     */
    @Import(name="vpcId")
    private @Nullable Output vpcId;

    /**
     * @return ID of the VPC that owns the vSwitch.
     * 
     */
    public Optional> vpcId() {
        return Optional.ofNullable(this.vpcId);
    }

    /**
     * The name of the vSwitch.
     * 
     */
    @Import(name="vswitchName")
    private @Nullable Output vswitchName;

    /**
     * @return The name of the vSwitch.
     * 
     */
    public Optional> vswitchName() {
        return Optional.ofNullable(this.vswitchName);
    }

    /**
     * The vSwitch owner id.
     * 
     */
    @Import(name="vswitchOwnerId")
    private @Nullable Output vswitchOwnerId;

    /**
     * @return The vSwitch owner id.
     * 
     */
    public Optional> vswitchOwnerId() {
        return Optional.ofNullable(this.vswitchOwnerId);
    }

    /**
     * The availability zone of the vSwitch.
     * 
     */
    @Import(name="zoneId")
    private @Nullable Output zoneId;

    /**
     * @return The availability zone of the vSwitch.
     * 
     */
    public Optional> zoneId() {
        return Optional.ofNullable(this.zoneId);
    }

    private GetSwitchesArgs() {}

    private GetSwitchesArgs(GetSwitchesArgs $) {
        this.cidrBlock = $.cidrBlock;
        this.dryRun = $.dryRun;
        this.ids = $.ids;
        this.isDefault = $.isDefault;
        this.nameRegex = $.nameRegex;
        this.outputFile = $.outputFile;
        this.resourceGroupId = $.resourceGroupId;
        this.routeTableId = $.routeTableId;
        this.status = $.status;
        this.tags = $.tags;
        this.vpcId = $.vpcId;
        this.vswitchName = $.vswitchName;
        this.vswitchOwnerId = $.vswitchOwnerId;
        this.zoneId = $.zoneId;
    }

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

    public static final class Builder {
        private GetSwitchesArgs $;

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

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

        /**
         * @param cidrBlock Filter results by a specific CIDR block. For example: "172.16.0.0/12".
         * 
         * @return builder
         * 
         */
        public Builder cidrBlock(@Nullable Output cidrBlock) {
            $.cidrBlock = cidrBlock;
            return this;
        }

        /**
         * @param cidrBlock Filter results by a specific CIDR block. For example: "172.16.0.0/12".
         * 
         * @return builder
         * 
         */
        public Builder cidrBlock(String cidrBlock) {
            return cidrBlock(Output.of(cidrBlock));
        }

        /**
         * @param dryRun Specifies whether to precheck this request only. Valid values: `true` and `false`.
         * 
         * @return builder
         * 
         */
        public Builder dryRun(@Nullable Output dryRun) {
            $.dryRun = dryRun;
            return this;
        }

        /**
         * @param dryRun Specifies whether to precheck this request only. Valid values: `true` and `false`.
         * 
         * @return builder
         * 
         */
        public Builder dryRun(Boolean dryRun) {
            return dryRun(Output.of(dryRun));
        }

        /**
         * @param ids A list of vSwitch IDs.
         * 
         * @return builder
         * 
         */
        public Builder ids(@Nullable Output> ids) {
            $.ids = ids;
            return this;
        }

        /**
         * @param ids A list of vSwitch IDs.
         * 
         * @return builder
         * 
         */
        public Builder ids(List ids) {
            return ids(Output.of(ids));
        }

        /**
         * @param ids A list of vSwitch IDs.
         * 
         * @return builder
         * 
         */
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }

        /**
         * @param isDefault Indicate whether the vSwitch is created by the system.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(@Nullable Output isDefault) {
            $.isDefault = isDefault;
            return this;
        }

        /**
         * @param isDefault Indicate whether the vSwitch is created by the system.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(Boolean isDefault) {
            return isDefault(Output.of(isDefault));
        }

        /**
         * @param nameRegex A regex string to filter results by name.
         * 
         * @return builder
         * 
         */
        public Builder nameRegex(@Nullable Output nameRegex) {
            $.nameRegex = nameRegex;
            return this;
        }

        /**
         * @param nameRegex A regex string to filter results by name.
         * 
         * @return builder
         * 
         */
        public Builder nameRegex(String nameRegex) {
            return nameRegex(Output.of(nameRegex));
        }

        /**
         * @param outputFile File name where to save data source results (after running `pulumi preview`).
         * 
         * @return builder
         * 
         */
        public Builder outputFile(@Nullable Output outputFile) {
            $.outputFile = outputFile;
            return this;
        }

        /**
         * @param outputFile File name where to save data source results (after running `pulumi preview`).
         * 
         * @return builder
         * 
         */
        public Builder outputFile(String outputFile) {
            return outputFile(Output.of(outputFile));
        }

        /**
         * @param resourceGroupId The Id of resource group which VSWitch belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(@Nullable Output resourceGroupId) {
            $.resourceGroupId = resourceGroupId;
            return this;
        }

        /**
         * @param resourceGroupId The Id of resource group which VSWitch belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(String resourceGroupId) {
            return resourceGroupId(Output.of(resourceGroupId));
        }

        /**
         * @param routeTableId The route table ID of the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(@Nullable Output routeTableId) {
            $.routeTableId = routeTableId;
            return this;
        }

        /**
         * @param routeTableId The route table ID of the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder routeTableId(String routeTableId) {
            return routeTableId(Output.of(routeTableId));
        }

        /**
         * @param status The status of the vSwitch. Valid values: `Available` and `Pending`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the vSwitch. Valid values: `Available` and `Pending`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vpcId ID of the VPC that owns the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(@Nullable Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId ID of the VPC that owns the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        /**
         * @param vswitchName The name of the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder vswitchName(@Nullable Output vswitchName) {
            $.vswitchName = vswitchName;
            return this;
        }

        /**
         * @param vswitchName The name of the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder vswitchName(String vswitchName) {
            return vswitchName(Output.of(vswitchName));
        }

        /**
         * @param vswitchOwnerId The vSwitch owner id.
         * 
         * @return builder
         * 
         */
        public Builder vswitchOwnerId(@Nullable Output vswitchOwnerId) {
            $.vswitchOwnerId = vswitchOwnerId;
            return this;
        }

        /**
         * @param vswitchOwnerId The vSwitch owner id.
         * 
         * @return builder
         * 
         */
        public Builder vswitchOwnerId(Integer vswitchOwnerId) {
            return vswitchOwnerId(Output.of(vswitchOwnerId));
        }

        /**
         * @param zoneId The availability zone of the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder zoneId(@Nullable Output zoneId) {
            $.zoneId = zoneId;
            return this;
        }

        /**
         * @param zoneId The availability zone of the vSwitch.
         * 
         * @return builder
         * 
         */
        public Builder zoneId(String zoneId) {
            return zoneId(Output.of(zoneId));
        }

        public GetSwitchesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy