Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.azureplaywrightservice.AccountArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.azureplaywrightservice;
import com.pulumi.azurenative.azureplaywrightservice.enums.EnablementStatus;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class AccountArgs extends com.pulumi.resources.ResourceArgs {
public static final AccountArgs Empty = new AccountArgs();
/**
* The geo-location where the resource lives
*
*/
@Import(name="location")
private @Nullable Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Optional> location() {
return Optional.ofNullable(this.location);
}
/**
* Name of account
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Name of account
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
*
*/
@Import(name="regionalAffinity")
private @Nullable Output> regionalAffinity;
/**
* @return This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
*
*/
public Optional>> regionalAffinity() {
return Optional.ofNullable(this.regionalAffinity);
}
/**
* When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
*
*/
@Import(name="reporting")
private @Nullable Output> reporting;
/**
* @return When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
*
*/
public Optional>> reporting() {
return Optional.ofNullable(this.reporting);
}
/**
* The name of the resource group. The name is case insensitive.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return The name of the resource group. The name is case insensitive.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
*
*/
@Import(name="scalableExecution")
private @Nullable Output> scalableExecution;
/**
* @return When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
*
*/
public Optional>> scalableExecution() {
return Optional.ofNullable(this.scalableExecution);
}
/**
* Resource tags.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Resource tags.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
private AccountArgs() {}
private AccountArgs(AccountArgs $) {
this.location = $.location;
this.name = $.name;
this.regionalAffinity = $.regionalAffinity;
this.reporting = $.reporting;
this.resourceGroupName = $.resourceGroupName;
this.scalableExecution = $.scalableExecution;
this.tags = $.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AccountArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AccountArgs $;
public Builder() {
$ = new AccountArgs();
}
public Builder(AccountArgs defaults) {
$ = new AccountArgs(Objects.requireNonNull(defaults));
}
/**
* @param location The geo-location where the resource lives
*
* @return builder
*
*/
public Builder location(@Nullable Output location) {
$.location = location;
return this;
}
/**
* @param location The geo-location where the resource lives
*
* @return builder
*
*/
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param name Name of account
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Name of account
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param regionalAffinity This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
*
* @return builder
*
*/
public Builder regionalAffinity(@Nullable Output> regionalAffinity) {
$.regionalAffinity = regionalAffinity;
return this;
}
/**
* @param regionalAffinity This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
*
* @return builder
*
*/
public Builder regionalAffinity(Either regionalAffinity) {
return regionalAffinity(Output.of(regionalAffinity));
}
/**
* @param regionalAffinity This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
*
* @return builder
*
*/
public Builder regionalAffinity(String regionalAffinity) {
return regionalAffinity(Either.ofLeft(regionalAffinity));
}
/**
* @param regionalAffinity This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
*
* @return builder
*
*/
public Builder regionalAffinity(EnablementStatus regionalAffinity) {
return regionalAffinity(Either.ofRight(regionalAffinity));
}
/**
* @param reporting When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
*
* @return builder
*
*/
public Builder reporting(@Nullable Output> reporting) {
$.reporting = reporting;
return this;
}
/**
* @param reporting When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
*
* @return builder
*
*/
public Builder reporting(Either reporting) {
return reporting(Output.of(reporting));
}
/**
* @param reporting When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
*
* @return builder
*
*/
public Builder reporting(String reporting) {
return reporting(Either.ofLeft(reporting));
}
/**
* @param reporting When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
*
* @return builder
*
*/
public Builder reporting(EnablementStatus reporting) {
return reporting(Either.ofRight(reporting));
}
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName The name of the resource group. The name is case insensitive.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param scalableExecution When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
*
* @return builder
*
*/
public Builder scalableExecution(@Nullable Output> scalableExecution) {
$.scalableExecution = scalableExecution;
return this;
}
/**
* @param scalableExecution When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
*
* @return builder
*
*/
public Builder scalableExecution(Either scalableExecution) {
return scalableExecution(Output.of(scalableExecution));
}
/**
* @param scalableExecution When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
*
* @return builder
*
*/
public Builder scalableExecution(String scalableExecution) {
return scalableExecution(Either.ofLeft(scalableExecution));
}
/**
* @param scalableExecution When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
*
* @return builder
*
*/
public Builder scalableExecution(EnablementStatus scalableExecution) {
return scalableExecution(Either.ofRight(scalableExecution));
}
/**
* @param tags Resource tags.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Resource tags.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
public AccountArgs build() {
$.regionalAffinity = Codegen.stringProp("regionalAffinity").left(EnablementStatus.class).output().arg($.regionalAffinity).def("Enabled").getNullable();
$.reporting = Codegen.stringProp("reporting").left(EnablementStatus.class).output().arg($.reporting).def("Disabled").getNullable();
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("AccountArgs", "resourceGroupName");
}
$.scalableExecution = Codegen.stringProp("scalableExecution").left(EnablementStatus.class).output().arg($.scalableExecution).def("Enabled").getNullable();
return $;
}
}
}