ProtocolSettings Class

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

Implements

public final class ProtocolSettings
implements JsonSerializable<ProtocolSettings>

Protocol-level settings for the connection analyzer.

Constructor Summary

Constructor Description
ProtocolSettings()

Creates an instance of ProtocolSettings class.

Method Summary

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

Reads an instance of ProtocolSettings from the JsonReader.

HttpConfiguration httpConfiguration()

Get the httpConfiguration property: HTTP configuration (used when protocol is Http or Https).

Protocol protocol()

Get the protocol property: Network protocol.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProtocolSettings withHttpConfiguration(HttpConfiguration httpConfiguration)

Set the httpConfiguration property: HTTP configuration (used when protocol is Http or Https).

ProtocolSettings withProtocol(Protocol protocol)

Set the protocol property: Network protocol.

Methods inherited from java.lang.Object

Constructor Details

ProtocolSettings

public ProtocolSettings()

Creates an instance of ProtocolSettings class.

Method Details

fromJson

public static ProtocolSettings fromJson(JsonReader jsonReader)

Reads an instance of ProtocolSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

httpConfiguration

public HttpConfiguration httpConfiguration()

Get the httpConfiguration property: HTTP configuration (used when protocol is Http or Https).

Returns:

the httpConfiguration value.

protocol

public Protocol protocol()

Get the protocol property: Network protocol.

Returns:

the protocol value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHttpConfiguration

public ProtocolSettings withHttpConfiguration(HttpConfiguration httpConfiguration)

Set the httpConfiguration property: HTTP configuration (used when protocol is Http or Https).

Parameters:

httpConfiguration - the httpConfiguration value to set.

Returns:

the ProtocolSettings object itself.

withProtocol

public ProtocolSettings withProtocol(Protocol protocol)

Set the protocol property: Network protocol.

Parameters:

protocol - the protocol value to set.

Returns:

the ProtocolSettings object itself.

Applies to