
com.pulumi.azurenative.insights.outputs.GetWebTestResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
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.insights.outputs;
import com.pulumi.azurenative.insights.outputs.WebTestGeolocationResponse;
import com.pulumi.azurenative.insights.outputs.WebTestPropertiesResponseConfiguration;
import com.pulumi.azurenative.insights.outputs.WebTestPropertiesResponseRequest;
import com.pulumi.azurenative.insights.outputs.WebTestPropertiesResponseValidationRules;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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;
@CustomType
public final class GetWebTestResult {
/**
* @return An XML configuration specification for a WebTest.
*
*/
private @Nullable WebTestPropertiesResponseConfiguration configuration;
/**
* @return User defined description for this WebTest.
*
*/
private @Nullable String description;
/**
* @return Is the test actively being monitored.
*
*/
private @Nullable Boolean enabled;
/**
* @return Interval in seconds between test runs for this WebTest. Default value is 300.
*
*/
private @Nullable Integer frequency;
/**
* @return Azure resource Id
*
*/
private String id;
/**
* @return The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*
*/
private @Nullable String kind;
/**
* @return Resource location
*
*/
private String location;
/**
* @return A list of where to physically run the tests from to give global coverage for accessibility of your application.
*
*/
private List locations;
/**
* @return Azure resource name
*
*/
private String name;
/**
* @return Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
*
*/
private String provisioningState;
/**
* @return The collection of request properties
*
*/
private @Nullable WebTestPropertiesResponseRequest request;
/**
* @return Allow for retries should this WebTest fail.
*
*/
private @Nullable Boolean retryEnabled;
/**
* @return Unique ID of this WebTest. This is typically the same value as the Name field.
*
*/
private String syntheticMonitorId;
/**
* @return Resource tags
*
*/
private @Nullable Map tags;
/**
* @return Seconds until this WebTest will timeout and fail. Default value is 30.
*
*/
private @Nullable Integer timeout;
/**
* @return Azure resource type
*
*/
private String type;
/**
* @return The collection of validation rule properties
*
*/
private @Nullable WebTestPropertiesResponseValidationRules validationRules;
/**
* @return The kind of web test this is, valid choices are ping, multistep and standard.
*
*/
private String webTestKind;
/**
* @return User defined name if this WebTest.
*
*/
private String webTestName;
private GetWebTestResult() {}
/**
* @return An XML configuration specification for a WebTest.
*
*/
public Optional configuration() {
return Optional.ofNullable(this.configuration);
}
/**
* @return User defined description for this WebTest.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Is the test actively being monitored.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Interval in seconds between test runs for this WebTest. Default value is 300.
*
*/
public Optional frequency() {
return Optional.ofNullable(this.frequency);
}
/**
* @return Azure resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Resource location
*
*/
public String location() {
return this.location;
}
/**
* @return A list of where to physically run the tests from to give global coverage for accessibility of your application.
*
*/
public List locations() {
return this.locations;
}
/**
* @return Azure resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The collection of request properties
*
*/
public Optional request() {
return Optional.ofNullable(this.request);
}
/**
* @return Allow for retries should this WebTest fail.
*
*/
public Optional retryEnabled() {
return Optional.ofNullable(this.retryEnabled);
}
/**
* @return Unique ID of this WebTest. This is typically the same value as the Name field.
*
*/
public String syntheticMonitorId() {
return this.syntheticMonitorId;
}
/**
* @return Resource tags
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Seconds until this WebTest will timeout and fail. Default value is 30.
*
*/
public Optional timeout() {
return Optional.ofNullable(this.timeout);
}
/**
* @return Azure resource type
*
*/
public String type() {
return this.type;
}
/**
* @return The collection of validation rule properties
*
*/
public Optional validationRules() {
return Optional.ofNullable(this.validationRules);
}
/**
* @return The kind of web test this is, valid choices are ping, multistep and standard.
*
*/
public String webTestKind() {
return this.webTestKind;
}
/**
* @return User defined name if this WebTest.
*
*/
public String webTestName() {
return this.webTestName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetWebTestResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable WebTestPropertiesResponseConfiguration configuration;
private @Nullable String description;
private @Nullable Boolean enabled;
private @Nullable Integer frequency;
private String id;
private @Nullable String kind;
private String location;
private List locations;
private String name;
private String provisioningState;
private @Nullable WebTestPropertiesResponseRequest request;
private @Nullable Boolean retryEnabled;
private String syntheticMonitorId;
private @Nullable Map tags;
private @Nullable Integer timeout;
private String type;
private @Nullable WebTestPropertiesResponseValidationRules validationRules;
private String webTestKind;
private String webTestName;
public Builder() {}
public Builder(GetWebTestResult defaults) {
Objects.requireNonNull(defaults);
this.configuration = defaults.configuration;
this.description = defaults.description;
this.enabled = defaults.enabled;
this.frequency = defaults.frequency;
this.id = defaults.id;
this.kind = defaults.kind;
this.location = defaults.location;
this.locations = defaults.locations;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.request = defaults.request;
this.retryEnabled = defaults.retryEnabled;
this.syntheticMonitorId = defaults.syntheticMonitorId;
this.tags = defaults.tags;
this.timeout = defaults.timeout;
this.type = defaults.type;
this.validationRules = defaults.validationRules;
this.webTestKind = defaults.webTestKind;
this.webTestName = defaults.webTestName;
}
@CustomType.Setter
public Builder configuration(@Nullable WebTestPropertiesResponseConfiguration configuration) {
this.configuration = configuration;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder frequency(@Nullable Integer frequency) {
this.frequency = frequency;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder locations(List locations) {
if (locations == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "locations");
}
this.locations = locations;
return this;
}
public Builder locations(WebTestGeolocationResponse... locations) {
return locations(List.of(locations));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder request(@Nullable WebTestPropertiesResponseRequest request) {
this.request = request;
return this;
}
@CustomType.Setter
public Builder retryEnabled(@Nullable Boolean retryEnabled) {
this.retryEnabled = retryEnabled;
return this;
}
@CustomType.Setter
public Builder syntheticMonitorId(String syntheticMonitorId) {
if (syntheticMonitorId == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "syntheticMonitorId");
}
this.syntheticMonitorId = syntheticMonitorId;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder timeout(@Nullable Integer timeout) {
this.timeout = timeout;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder validationRules(@Nullable WebTestPropertiesResponseValidationRules validationRules) {
this.validationRules = validationRules;
return this;
}
@CustomType.Setter
public Builder webTestKind(String webTestKind) {
if (webTestKind == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "webTestKind");
}
this.webTestKind = webTestKind;
return this;
}
@CustomType.Setter
public Builder webTestName(String webTestName) {
if (webTestName == null) {
throw new MissingRequiredPropertyException("GetWebTestResult", "webTestName");
}
this.webTestName = webTestName;
return this;
}
public GetWebTestResult build() {
final var _resultValue = new GetWebTestResult();
_resultValue.configuration = configuration;
_resultValue.description = description;
_resultValue.enabled = enabled;
_resultValue.frequency = frequency;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.locations = locations;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.request = request;
_resultValue.retryEnabled = retryEnabled;
_resultValue.syntheticMonitorId = syntheticMonitorId;
_resultValue.tags = tags;
_resultValue.timeout = timeout;
_resultValue.type = type;
_resultValue.validationRules = validationRules;
_resultValue.webTestKind = webTestKind;
_resultValue.webTestName = webTestName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy