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

com.pulumi.alicloud.ecp.inputs.GetInstancesArgs 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.ecp.inputs;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetInstancesArgs Empty = new GetInstancesArgs();

    @Import(name="enableDetails")
    private @Nullable Output enableDetails;

    public Optional> enableDetails() {
        return Optional.ofNullable(this.enableDetails);
    }

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

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

    /**
     * The ID Of The Image.
     * 
     */
    @Import(name="imageId")
    private @Nullable Output imageId;

    /**
     * @return The ID Of The Image.
     * 
     */
    public Optional> imageId() {
        return Optional.ofNullable(this.imageId);
    }

    /**
     * The name of the instance. It must be 2 to 128 characters in length and must start with an
     * uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
     * half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
     * the instance.
     * 
     */
    @Import(name="instanceName")
    private @Nullable Output instanceName;

    /**
     * @return The name of the instance. It must be 2 to 128 characters in length and must start with an
     * uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
     * half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
     * the instance.
     * 
     */
    public Optional> instanceName() {
        return Optional.ofNullable(this.instanceName);
    }

    /**
     * Instance Type.
     * 
     */
    @Import(name="instanceType")
    private @Nullable Output instanceType;

    /**
     * @return Instance Type.
     * 
     */
    public Optional> instanceType() {
        return Optional.ofNullable(this.instanceType);
    }

    /**
     * The name of the key pair of the mobile phone instance.
     * 
     */
    @Import(name="keyPairName")
    private @Nullable Output keyPairName;

    /**
     * @return The name of the key pair of the mobile phone instance.
     * 
     */
    public Optional> keyPairName() {
        return Optional.ofNullable(this.keyPairName);
    }

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

    /**
     * @return A regex string to filter results by mobile phone 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 payment type.Valid values: `PayAsYouGo`,`Subscription`
     * 
     */
    @Import(name="paymentType")
    private @Nullable Output paymentType;

    /**
     * @return The payment type.Valid values: `PayAsYouGo`,`Subscription`
     * 
     */
    public Optional> paymentType() {
        return Optional.ofNullable(this.paymentType);
    }

    /**
     * The selected resolution for the cloud mobile phone instance.
     * 
     */
    @Import(name="resolution")
    private @Nullable Output resolution;

    /**
     * @return The selected resolution for the cloud mobile phone instance.
     * 
     */
    public Optional> resolution() {
        return Optional.ofNullable(this.resolution);
    }

    /**
     * Instance status. Valid values: `Pending`, `Running`, `Starting`, `Stopped`, `Stopping`
     * .
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Instance status. Valid values: `Pending`, `Running`, `Starting`, `Stopped`, `Stopping`
     * .
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    @Import(name="zoneId")
    private @Nullable Output zoneId;

    public Optional> zoneId() {
        return Optional.ofNullable(this.zoneId);
    }

    private GetInstancesArgs() {}

    private GetInstancesArgs(GetInstancesArgs $) {
        this.enableDetails = $.enableDetails;
        this.ids = $.ids;
        this.imageId = $.imageId;
        this.instanceName = $.instanceName;
        this.instanceType = $.instanceType;
        this.keyPairName = $.keyPairName;
        this.nameRegex = $.nameRegex;
        this.outputFile = $.outputFile;
        this.paymentType = $.paymentType;
        this.resolution = $.resolution;
        this.status = $.status;
        this.zoneId = $.zoneId;
    }

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

    public static final class Builder {
        private GetInstancesArgs $;

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

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

        public Builder enableDetails(@Nullable Output enableDetails) {
            $.enableDetails = enableDetails;
            return this;
        }

        public Builder enableDetails(Boolean enableDetails) {
            return enableDetails(Output.of(enableDetails));
        }

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

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

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

        /**
         * @param imageId The ID Of The Image.
         * 
         * @return builder
         * 
         */
        public Builder imageId(@Nullable Output imageId) {
            $.imageId = imageId;
            return this;
        }

        /**
         * @param imageId The ID Of The Image.
         * 
         * @return builder
         * 
         */
        public Builder imageId(String imageId) {
            return imageId(Output.of(imageId));
        }

        /**
         * @param instanceName The name of the instance. It must be 2 to 128 characters in length and must start with an
         * uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
         * half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
         * the instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceName(@Nullable Output instanceName) {
            $.instanceName = instanceName;
            return this;
        }

        /**
         * @param instanceName The name of the instance. It must be 2 to 128 characters in length and must start with an
         * uppercase letter or Chinese. It cannot start with http:// or https. It can contain Chinese, English, numbers,
         * half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of
         * the instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceName(String instanceName) {
            return instanceName(Output.of(instanceName));
        }

        /**
         * @param instanceType Instance Type.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(@Nullable Output instanceType) {
            $.instanceType = instanceType;
            return this;
        }

        /**
         * @param instanceType Instance Type.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(String instanceType) {
            return instanceType(Output.of(instanceType));
        }

        /**
         * @param keyPairName The name of the key pair of the mobile phone instance.
         * 
         * @return builder
         * 
         */
        public Builder keyPairName(@Nullable Output keyPairName) {
            $.keyPairName = keyPairName;
            return this;
        }

        /**
         * @param keyPairName The name of the key pair of the mobile phone instance.
         * 
         * @return builder
         * 
         */
        public Builder keyPairName(String keyPairName) {
            return keyPairName(Output.of(keyPairName));
        }

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

        /**
         * @param nameRegex A regex string to filter results by mobile phone 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 paymentType The payment type.Valid values: `PayAsYouGo`,`Subscription`
         * 
         * @return builder
         * 
         */
        public Builder paymentType(@Nullable Output paymentType) {
            $.paymentType = paymentType;
            return this;
        }

        /**
         * @param paymentType The payment type.Valid values: `PayAsYouGo`,`Subscription`
         * 
         * @return builder
         * 
         */
        public Builder paymentType(String paymentType) {
            return paymentType(Output.of(paymentType));
        }

        /**
         * @param resolution The selected resolution for the cloud mobile phone instance.
         * 
         * @return builder
         * 
         */
        public Builder resolution(@Nullable Output resolution) {
            $.resolution = resolution;
            return this;
        }

        /**
         * @param resolution The selected resolution for the cloud mobile phone instance.
         * 
         * @return builder
         * 
         */
        public Builder resolution(String resolution) {
            return resolution(Output.of(resolution));
        }

        /**
         * @param status Instance status. Valid values: `Pending`, `Running`, `Starting`, `Stopped`, `Stopping`
         * .
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Instance status. Valid values: `Pending`, `Running`, `Starting`, `Stopped`, `Stopping`
         * .
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public Builder zoneId(@Nullable Output zoneId) {
            $.zoneId = zoneId;
            return this;
        }

        public Builder zoneId(String zoneId) {
            return zoneId(Output.of(zoneId));
        }

        public GetInstancesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy