次の方法で共有


WebTestPropertiesRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesRequest

Implements

public final class WebTestPropertiesRequest
implements JsonSerializable<WebTestPropertiesRequest>

The collection of request properties.

Constructor Summary

Constructor Description
WebTestPropertiesRequest()

Creates an instance of WebTestPropertiesRequest class.

Method Summary

Modifier and Type Method and Description
Boolean followRedirects()

Get the followRedirects property: Follow redirects for this web test.

static WebTestPropertiesRequest fromJson(JsonReader jsonReader)

Reads an instance of WebTestPropertiesRequest from the JsonReader.

List<HeaderField> headers()

Get the headers property: List of headers and their values to add to the WebTest call.

String httpVerb()

Get the httpVerb property: Http verb to use for this web test.

Boolean parseDependentRequests()

Get the parseDependentRequests property: Parse Dependent request for this WebTest.

String requestBody()

Get the requestBody property: Base64 encoded string body to send with this web test.

String requestUrl()

Get the requestUrl property: Url location to test.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebTestPropertiesRequest withFollowRedirects(Boolean followRedirects)

Set the followRedirects property: Follow redirects for this web test.

WebTestPropertiesRequest withHeaders(List<HeaderField> headers)

Set the headers property: List of headers and their values to add to the WebTest call.

WebTestPropertiesRequest withHttpVerb(String httpVerb)

Set the httpVerb property: Http verb to use for this web test.

WebTestPropertiesRequest withParseDependentRequests(Boolean parseDependentRequests)

Set the parseDependentRequests property: Parse Dependent request for this WebTest.

WebTestPropertiesRequest withRequestBody(String requestBody)

Set the requestBody property: Base64 encoded string body to send with this web test.

WebTestPropertiesRequest withRequestUrl(String requestUrl)

Set the requestUrl property: Url location to test.

Methods inherited from java.lang.Object

Constructor Details

WebTestPropertiesRequest

public WebTestPropertiesRequest()

Creates an instance of WebTestPropertiesRequest class.

Method Details

followRedirects

public Boolean followRedirects()

Get the followRedirects property: Follow redirects for this web test.

Returns:

the followRedirects value.

fromJson

public static WebTestPropertiesRequest fromJson(JsonReader jsonReader)

Reads an instance of WebTestPropertiesRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebTestPropertiesRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the WebTestPropertiesRequest.

headers

public List<HeaderField> headers()

Get the headers property: List of headers and their values to add to the WebTest call.

Returns:

the headers value.

httpVerb

public String httpVerb()

Get the httpVerb property: Http verb to use for this web test.

Returns:

the httpVerb value.

parseDependentRequests

public Boolean parseDependentRequests()

Get the parseDependentRequests property: Parse Dependent request for this WebTest.

Returns:

the parseDependentRequests value.

requestBody

public String requestBody()

Get the requestBody property: Base64 encoded string body to send with this web test.

Returns:

the requestBody value.

requestUrl

public String requestUrl()

Get the requestUrl property: Url location to test.

Returns:

the requestUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFollowRedirects

public WebTestPropertiesRequest withFollowRedirects(Boolean followRedirects)

Set the followRedirects property: Follow redirects for this web test.

Parameters:

followRedirects - the followRedirects value to set.

Returns:

the WebTestPropertiesRequest object itself.

withHeaders

public WebTestPropertiesRequest withHeaders(List<HeaderField> headers)

Set the headers property: List of headers and their values to add to the WebTest call.

Parameters:

headers - the headers value to set.

Returns:

the WebTestPropertiesRequest object itself.

withHttpVerb

public WebTestPropertiesRequest withHttpVerb(String httpVerb)

Set the httpVerb property: Http verb to use for this web test.

Parameters:

httpVerb - the httpVerb value to set.

Returns:

the WebTestPropertiesRequest object itself.

withParseDependentRequests

public WebTestPropertiesRequest withParseDependentRequests(Boolean parseDependentRequests)

Set the parseDependentRequests property: Parse Dependent request for this WebTest.

Parameters:

parseDependentRequests - the parseDependentRequests value to set.

Returns:

the WebTestPropertiesRequest object itself.

withRequestBody

public WebTestPropertiesRequest withRequestBody(String requestBody)

Set the requestBody property: Base64 encoded string body to send with this web test.

Parameters:

requestBody - the requestBody value to set.

Returns:

the WebTestPropertiesRequest object itself.

withRequestUrl

public WebTestPropertiesRequest withRequestUrl(String requestUrl)

Set the requestUrl property: Url location to test.

Parameters:

requestUrl - the requestUrl value to set.

Returns:

the WebTestPropertiesRequest object itself.

Applies to