
com.pulumi.azurenative.insights.outputs.WebTestPropertiesResponseRequest 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.azurenative.insights.outputs;
import com.pulumi.azurenative.insights.outputs.HeaderFieldResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebTestPropertiesResponseRequest {
/**
* @return Follow redirects for this web test.
*
*/
private @Nullable Boolean followRedirects;
/**
* @return List of headers and their values to add to the WebTest call.
*
*/
private @Nullable List headers;
/**
* @return Http verb to use for this web test.
*
*/
private @Nullable String httpVerb;
/**
* @return Parse Dependent request for this WebTest.
*
*/
private @Nullable Boolean parseDependentRequests;
/**
* @return Base64 encoded string body to send with this web test.
*
*/
private @Nullable String requestBody;
/**
* @return Url location to test.
*
*/
private @Nullable String requestUrl;
private WebTestPropertiesResponseRequest() {}
/**
* @return Follow redirects for this web test.
*
*/
public Optional followRedirects() {
return Optional.ofNullable(this.followRedirects);
}
/**
* @return List of headers and their values to add to the WebTest call.
*
*/
public List headers() {
return this.headers == null ? List.of() : this.headers;
}
/**
* @return Http verb to use for this web test.
*
*/
public Optional httpVerb() {
return Optional.ofNullable(this.httpVerb);
}
/**
* @return Parse Dependent request for this WebTest.
*
*/
public Optional parseDependentRequests() {
return Optional.ofNullable(this.parseDependentRequests);
}
/**
* @return Base64 encoded string body to send with this web test.
*
*/
public Optional requestBody() {
return Optional.ofNullable(this.requestBody);
}
/**
* @return Url location to test.
*
*/
public Optional requestUrl() {
return Optional.ofNullable(this.requestUrl);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebTestPropertiesResponseRequest defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean followRedirects;
private @Nullable List headers;
private @Nullable String httpVerb;
private @Nullable Boolean parseDependentRequests;
private @Nullable String requestBody;
private @Nullable String requestUrl;
public Builder() {}
public Builder(WebTestPropertiesResponseRequest defaults) {
Objects.requireNonNull(defaults);
this.followRedirects = defaults.followRedirects;
this.headers = defaults.headers;
this.httpVerb = defaults.httpVerb;
this.parseDependentRequests = defaults.parseDependentRequests;
this.requestBody = defaults.requestBody;
this.requestUrl = defaults.requestUrl;
}
@CustomType.Setter
public Builder followRedirects(@Nullable Boolean followRedirects) {
this.followRedirects = followRedirects;
return this;
}
@CustomType.Setter
public Builder headers(@Nullable List headers) {
this.headers = headers;
return this;
}
public Builder headers(HeaderFieldResponse... headers) {
return headers(List.of(headers));
}
@CustomType.Setter
public Builder httpVerb(@Nullable String httpVerb) {
this.httpVerb = httpVerb;
return this;
}
@CustomType.Setter
public Builder parseDependentRequests(@Nullable Boolean parseDependentRequests) {
this.parseDependentRequests = parseDependentRequests;
return this;
}
@CustomType.Setter
public Builder requestBody(@Nullable String requestBody) {
this.requestBody = requestBody;
return this;
}
@CustomType.Setter
public Builder requestUrl(@Nullable String requestUrl) {
this.requestUrl = requestUrl;
return this;
}
public WebTestPropertiesResponseRequest build() {
final var _resultValue = new WebTestPropertiesResponseRequest();
_resultValue.followRedirects = followRedirects;
_resultValue.headers = headers;
_resultValue.httpVerb = httpVerb;
_resultValue.parseDependentRequests = parseDependentRequests;
_resultValue.requestBody = requestBody;
_resultValue.requestUrl = requestUrl;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy