Interface CreateProjectRequest.Builder

  • Method Details

    • name

      The project's name.

      Parameters:
      name - The project's name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultJobTimeoutMinutes

      CreateProjectRequest.Builder defaultJobTimeoutMinutes(Integer defaultJobTimeoutMinutes)

      Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run.

      Parameters:
      defaultJobTimeoutMinutes - Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vpcConfig

      The VPC security groups and subnets that are attached to a project.

      Parameters:
      vpcConfig - The VPC security groups and subnets that are attached to a project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vpcConfig

      The VPC security groups and subnets that are attached to a project.

      This is a convenience method that creates an instance of the VpcConfig.Builder avoiding the need to create one manually via VpcConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vpcConfig(VpcConfig).

      Parameters:
      vpcConfig - a consumer that will call methods on VpcConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • environmentVariables

      CreateProjectRequest.Builder environmentVariables(Collection<EnvironmentVariable> environmentVariables)

      A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.

      For more information about using test spec files, please see Custom test environments in AWS Device Farm.

      Parameters:
      environmentVariables - A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.

      For more information about using test spec files, please see Custom test environments in AWS Device Farm.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentVariables

      CreateProjectRequest.Builder environmentVariables(EnvironmentVariable... environmentVariables)

      A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.

      For more information about using test spec files, please see Custom test environments in AWS Device Farm.

      Parameters:
      environmentVariables - A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.

      For more information about using test spec files, please see Custom test environments in AWS Device Farm.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentVariables

      CreateProjectRequest.Builder environmentVariables(Consumer<EnvironmentVariable.Builder>... environmentVariables)

      A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file.

      For more information about using test spec files, please see Custom test environments in AWS Device Farm.

      This is a convenience method that creates an instance of the EnvironmentVariable.Builder avoiding the need to create one manually via EnvironmentVariable.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to environmentVariables(List<EnvironmentVariable>).

      Parameters:
      environmentVariables - a consumer that will call methods on EnvironmentVariable.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • executionRoleArn

      CreateProjectRequest.Builder executionRoleArn(String executionRoleArn)

      An IAM role to be assumed by the test host for all runs in the project.

      Parameters:
      executionRoleArn - An IAM role to be assumed by the test host for all runs in the project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateProjectRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.