次の方法で共有


WebTestGeolocation Class

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

Implements

public final class WebTestGeolocation
implements JsonSerializable<WebTestGeolocation>

Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.

Constructor Summary

Constructor Description
WebTestGeolocation()

Creates an instance of WebTestGeolocation class.

Method Summary

Modifier and Type Method and Description
static WebTestGeolocation fromJson(JsonReader jsonReader)

Reads an instance of WebTestGeolocation from the JsonReader.

String location()

Get the location property: Location ID for the WebTest to run from.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebTestGeolocation withLocation(String location)

Set the location property: Location ID for the WebTest to run from.

Methods inherited from java.lang.Object

Constructor Details

WebTestGeolocation

public WebTestGeolocation()

Creates an instance of WebTestGeolocation class.

Method Details

fromJson

public static WebTestGeolocation fromJson(JsonReader jsonReader)

Reads an instance of WebTestGeolocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebTestGeolocation 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 WebTestGeolocation.

location

public String location()

Get the location property: Location ID for the WebTest to run from.

Returns:

the location value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public WebTestGeolocation withLocation(String location)

Set the location property: Location ID for the WebTest to run from.

Parameters:

location - the location value to set.

Returns:

the WebTestGeolocation object itself.

Applies to