ConnectivityCheckSettings Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectivityCheckSettings
- com.
Implements
public final class ConnectivityCheckSettings
implements JsonSerializable<ConnectivityCheckSettings>
Settings that control how connectivity checks are performed by the connection analyzer.
Constructor Summary
| Constructor | Description |
|---|---|
| ConnectivityCheckSettings() |
Creates an instance of Connectivity |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Connectivity |
fromJson(JsonReader jsonReader)
Reads an instance of Connectivity |
| Boolean |
generatePath()
Get the generate |
|
Preferred |
preferredIPVersion()
Get the preferred |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Connectivity |
withGeneratePath(Boolean generatePath)
Set the generate |
|
Connectivity |
withPreferredIPVersion(PreferredIpVersion preferredIPVersion)
Set the preferred |
Methods inherited from java.lang.Object
Constructor Details
ConnectivityCheckSettings
public ConnectivityCheckSettings()
Creates an instance of ConnectivityCheckSettings class.
Method Details
fromJson
public static ConnectivityCheckSettings fromJson(JsonReader jsonReader)
Reads an instance of ConnectivityCheckSettings from the JsonReader.
Parameters:
Returns:
Throws:
generatePath
public Boolean generatePath()
Get the generatePath property: Whether to generate a hop-by-hop path during the connectivity check. Default value is true.
Returns:
preferredIPVersion
public PreferredIpVersion preferredIPVersion()
Get the preferredIPVersion property: Preferred IP version for the connectivity check.
Returns:
toJson
validate
public void validate()
Validates the instance.
withGeneratePath
public ConnectivityCheckSettings withGeneratePath(Boolean generatePath)
Set the generatePath property: Whether to generate a hop-by-hop path during the connectivity check. Default value is true.
Parameters:
Returns:
withPreferredIPVersion
public ConnectivityCheckSettings withPreferredIPVersion(PreferredIpVersion preferredIPVersion)
Set the preferredIPVersion property: Preferred IP version for the connectivity check.
Parameters:
Returns: