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

com.pulumi.aws.devicefarm.inputs.DevicePoolState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
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.aws.devicefarm.inputs;

import com.pulumi.aws.devicefarm.inputs.DevicePoolRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 DevicePoolState extends com.pulumi.resources.ResourceArgs {

    public static final DevicePoolState Empty = new DevicePoolState();

    /**
     * The Amazon Resource Name of this Device Pool
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The Amazon Resource Name of this Device Pool
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The device pool's description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The device pool's description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The number of devices that Device Farm can add to your device pool.
     * 
     */
    @Import(name="maxDevices")
    private @Nullable Output maxDevices;

    /**
     * @return The number of devices that Device Farm can add to your device pool.
     * 
     */
    public Optional> maxDevices() {
        return Optional.ofNullable(this.maxDevices);
    }

    /**
     * The name of the Device Pool
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

    /**
     * The ARN of the project for the device pool.
     * 
     */
    @Import(name="projectArn")
    private @Nullable Output projectArn;

    /**
     * @return The ARN of the project for the device pool.
     * 
     */
    public Optional> projectArn() {
        return Optional.ofNullable(this.projectArn);
    }

    /**
     * The device pool's rules. See Rule.
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return The device pool's rules. See Rule.
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    /**
     * 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);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

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

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

    private DevicePoolState() {}

    private DevicePoolState(DevicePoolState $) {
        this.arn = $.arn;
        this.description = $.description;
        this.maxDevices = $.maxDevices;
        this.name = $.name;
        this.projectArn = $.projectArn;
        this.rules = $.rules;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.type = $.type;
    }

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

    public static final class Builder {
        private DevicePoolState $;

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

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

        /**
         * @param arn The Amazon Resource Name of this Device Pool
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name of this Device Pool
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param description The device pool's description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The device pool's description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param maxDevices The number of devices that Device Farm can add to your device pool.
         * 
         * @return builder
         * 
         */
        public Builder maxDevices(@Nullable Output maxDevices) {
            $.maxDevices = maxDevices;
            return this;
        }

        /**
         * @param maxDevices The number of devices that Device Farm can add to your device pool.
         * 
         * @return builder
         * 
         */
        public Builder maxDevices(Integer maxDevices) {
            return maxDevices(Output.of(maxDevices));
        }

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

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

        /**
         * @param projectArn The ARN of the project for the device pool.
         * 
         * @return builder
         * 
         */
        public Builder projectArn(@Nullable Output projectArn) {
            $.projectArn = projectArn;
            return this;
        }

        /**
         * @param projectArn The ARN of the project for the device pool.
         * 
         * @return builder
         * 
         */
        public Builder projectArn(String projectArn) {
            return projectArn(Output.of(projectArn));
        }

        /**
         * @param rules The device pool's rules. See Rule.
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules The device pool's rules. See Rule.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules The device pool's rules. See Rule.
         * 
         * @return builder
         * 
         */
        public Builder rules(DevicePoolRuleArgs... rules) {
            return rules(List.of(rules));
        }

        /**
         * @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));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

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

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

        public DevicePoolState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy