ProtocolConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ProtocolConfiguration

Implements

public final class ProtocolConfiguration
implements JsonSerializable<ProtocolConfiguration>

Configuration of the protocol.

Constructor Summary

Constructor Description
ProtocolConfiguration()

Creates an instance of ProtocolConfiguration class.

Method Summary

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

Reads an instance of ProtocolConfiguration from the JsonReader.

HttpConfiguration httpConfiguration()

Get the httpConfiguration property: HTTP configuration of the connectivity check.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProtocolConfiguration withHttpConfiguration(HttpConfiguration httpConfiguration)

Set the httpConfiguration property: HTTP configuration of the connectivity check.

Methods inherited from java.lang.Object

Constructor Details

ProtocolConfiguration

public ProtocolConfiguration()

Creates an instance of ProtocolConfiguration class.

Method Details

fromJson

public static ProtocolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ProtocolConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

httpConfiguration

public HttpConfiguration httpConfiguration()

Get the httpConfiguration property: HTTP configuration of the connectivity check.

Returns:

the httpConfiguration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHttpConfiguration

public ProtocolConfiguration withHttpConfiguration(HttpConfiguration httpConfiguration)

Set the httpConfiguration property: HTTP configuration of the connectivity check.

Parameters:

httpConfiguration - the httpConfiguration value to set.

Returns:

the ProtocolConfiguration object itself.

Applies to