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

com.pulumi.aws.devicefarm.inputs.InstanceProfileState 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.60.0-alpha.1731982519
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.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
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 InstanceProfileState extends com.pulumi.resources.ResourceArgs {

    public static final InstanceProfileState Empty = new InstanceProfileState();

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

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

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

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

    /**
     * An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
     * 
     */
    @Import(name="excludeAppPackagesFromCleanups")
    private @Nullable Output> excludeAppPackagesFromCleanups;

    /**
     * @return An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
     * 
     */
    public Optional>> excludeAppPackagesFromCleanups() {
        return Optional.ofNullable(this.excludeAppPackagesFromCleanups);
    }

    /**
     * The name for the instance profile.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name for the instance profile.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * When set to `true`, Device Farm removes app packages after a test run. The default value is `false` for private devices.
     * 
     */
    @Import(name="packageCleanup")
    private @Nullable Output packageCleanup;

    /**
     * @return When set to `true`, Device Farm removes app packages after a test run. The default value is `false` for private devices.
     * 
     */
    public Optional> packageCleanup() {
        return Optional.ofNullable(this.packageCleanup);
    }

    /**
     * When set to `true`, Device Farm reboots the instance after a test run. The default value is `true`.
     * 
     */
    @Import(name="rebootAfterUse")
    private @Nullable Output rebootAfterUse;

    /**
     * @return When set to `true`, Device Farm reboots the instance after a test run. The default value is `true`.
     * 
     */
    public Optional> rebootAfterUse() {
        return Optional.ofNullable(this.rebootAfterUse);
    }

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

    private InstanceProfileState() {}

    private InstanceProfileState(InstanceProfileState $) {
        this.arn = $.arn;
        this.description = $.description;
        this.excludeAppPackagesFromCleanups = $.excludeAppPackagesFromCleanups;
        this.name = $.name;
        this.packageCleanup = $.packageCleanup;
        this.rebootAfterUse = $.rebootAfterUse;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
    }

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

    public static final class Builder {
        private InstanceProfileState $;

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

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

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

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

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

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

        /**
         * @param excludeAppPackagesFromCleanups An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
         * 
         * @return builder
         * 
         */
        public Builder excludeAppPackagesFromCleanups(@Nullable Output> excludeAppPackagesFromCleanups) {
            $.excludeAppPackagesFromCleanups = excludeAppPackagesFromCleanups;
            return this;
        }

        /**
         * @param excludeAppPackagesFromCleanups An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
         * 
         * @return builder
         * 
         */
        public Builder excludeAppPackagesFromCleanups(List excludeAppPackagesFromCleanups) {
            return excludeAppPackagesFromCleanups(Output.of(excludeAppPackagesFromCleanups));
        }

        /**
         * @param excludeAppPackagesFromCleanups An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
         * 
         * @return builder
         * 
         */
        public Builder excludeAppPackagesFromCleanups(String... excludeAppPackagesFromCleanups) {
            return excludeAppPackagesFromCleanups(List.of(excludeAppPackagesFromCleanups));
        }

        /**
         * @param name The name for the instance profile.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param packageCleanup When set to `true`, Device Farm removes app packages after a test run. The default value is `false` for private devices.
         * 
         * @return builder
         * 
         */
        public Builder packageCleanup(@Nullable Output packageCleanup) {
            $.packageCleanup = packageCleanup;
            return this;
        }

        /**
         * @param packageCleanup When set to `true`, Device Farm removes app packages after a test run. The default value is `false` for private devices.
         * 
         * @return builder
         * 
         */
        public Builder packageCleanup(Boolean packageCleanup) {
            return packageCleanup(Output.of(packageCleanup));
        }

        /**
         * @param rebootAfterUse When set to `true`, Device Farm reboots the instance after a test run. The default value is `true`.
         * 
         * @return builder
         * 
         */
        public Builder rebootAfterUse(@Nullable Output rebootAfterUse) {
            $.rebootAfterUse = rebootAfterUse;
            return this;
        }

        /**
         * @param rebootAfterUse When set to `true`, Device Farm reboots the instance after a test run. The default value is `true`.
         * 
         * @return builder
         * 
         */
        public Builder rebootAfterUse(Boolean rebootAfterUse) {
            return rebootAfterUse(Output.of(rebootAfterUse));
        }

        /**
         * @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 InstanceProfileState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy