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

com.pulumi.googlenative.testing.v1.inputs.ManualShardingArgs Maven / Gradle / Ivy

// *** 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.googlenative.testing.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.testing.v1.inputs.TestTargetsForShardArgs;
import java.util.List;
import java.util.Objects;


/**
 * Shards test cases into the specified groups of packages, classes, and/or methods. With manual sharding enabled, specifying test targets via environment_variables or in InstrumentationTest is invalid.
 * 
 */
public final class ManualShardingArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManualShardingArgs Empty = new ManualShardingArgs();

    /**
     * Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
     * 
     */
    @Import(name="testTargetsForShard", required=true)
    private Output> testTargetsForShard;

    /**
     * @return Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
     * 
     */
    public Output> testTargetsForShard() {
        return this.testTargetsForShard;
    }

    private ManualShardingArgs() {}

    private ManualShardingArgs(ManualShardingArgs $) {
        this.testTargetsForShard = $.testTargetsForShard;
    }

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

    public static final class Builder {
        private ManualShardingArgs $;

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

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

        /**
         * @param testTargetsForShard Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
         * 
         * @return builder
         * 
         */
        public Builder testTargetsForShard(Output> testTargetsForShard) {
            $.testTargetsForShard = testTargetsForShard;
            return this;
        }

        /**
         * @param testTargetsForShard Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
         * 
         * @return builder
         * 
         */
        public Builder testTargetsForShard(List testTargetsForShard) {
            return testTargetsForShard(Output.of(testTargetsForShard));
        }

        /**
         * @param testTargetsForShard Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
         * 
         * @return builder
         * 
         */
        public Builder testTargetsForShard(TestTargetsForShardArgs... testTargetsForShard) {
            return testTargetsForShard(List.of(testTargetsForShard));
        }

        public ManualShardingArgs build() {
            $.testTargetsForShard = Objects.requireNonNull($.testTargetsForShard, "expected parameter 'testTargetsForShard' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy