NetworkConfigurationDiagnosticProfile Class

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

Implements

public final class NetworkConfigurationDiagnosticProfile
implements JsonSerializable<NetworkConfigurationDiagnosticProfile>

Parameters to compare with network configuration.

Constructor Summary

Constructor Description
NetworkConfigurationDiagnosticProfile()

Creates an instance of NetworkConfigurationDiagnosticProfile class.

Method Summary

Modifier and Type Method and Description
String destination()

Get the destination property: Traffic destination.

String destinationPort()

Get the destinationPort property: Traffic destination port.

Direction direction()

Get the direction property: The direction of the traffic.

static NetworkConfigurationDiagnosticProfile fromJson(JsonReader jsonReader)

Reads an instance of NetworkConfigurationDiagnosticProfile from the JsonReader.

String protocol()

Get the protocol property: Protocol to be verified on.

String source()

Get the source property: Traffic source.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkConfigurationDiagnosticProfile withDestination(String destination)

Set the destination property: Traffic destination.

NetworkConfigurationDiagnosticProfile withDestinationPort(String destinationPort)

Set the destinationPort property: Traffic destination port.

NetworkConfigurationDiagnosticProfile withDirection(Direction direction)

Set the direction property: The direction of the traffic.

NetworkConfigurationDiagnosticProfile withProtocol(String protocol)

Set the protocol property: Protocol to be verified on.

NetworkConfigurationDiagnosticProfile withSource(String source)

Set the source property: Traffic source.

Methods inherited from java.lang.Object

Constructor Details

NetworkConfigurationDiagnosticProfile

public NetworkConfigurationDiagnosticProfile()

Creates an instance of NetworkConfigurationDiagnosticProfile class.

Method Details

destination

public String destination()

Get the destination property: Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.

Returns:

the destination value.

destinationPort

public String destinationPort()

Get the destinationPort property: Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).

Returns:

the destinationPort value.

direction

public Direction direction()

Get the direction property: The direction of the traffic.

Returns:

the direction value.

fromJson

public static NetworkConfigurationDiagnosticProfile fromJson(JsonReader jsonReader)

Reads an instance of NetworkConfigurationDiagnosticProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

protocol

public String protocol()

Get the protocol property: Protocol to be verified on. Accepted values are '*', TCP, UDP.

Returns:

the protocol value.

source

public String source()

Get the source property: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestination

public NetworkConfigurationDiagnosticProfile withDestination(String destination)

Set the destination property: Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.

Parameters:

destination - the destination value to set.

Returns:

the NetworkConfigurationDiagnosticProfile object itself.

withDestinationPort

public NetworkConfigurationDiagnosticProfile withDestinationPort(String destinationPort)

Set the destinationPort property: Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).

Parameters:

destinationPort - the destinationPort value to set.

Returns:

the NetworkConfigurationDiagnosticProfile object itself.

withDirection

public NetworkConfigurationDiagnosticProfile withDirection(Direction direction)

Set the direction property: The direction of the traffic.

Parameters:

direction - the direction value to set.

Returns:

the NetworkConfigurationDiagnosticProfile object itself.

withProtocol

public NetworkConfigurationDiagnosticProfile withProtocol(String protocol)

Set the protocol property: Protocol to be verified on. Accepted values are '*', TCP, UDP.

Parameters:

protocol - the protocol value to set.

Returns:

the NetworkConfigurationDiagnosticProfile object itself.

withSource

public NetworkConfigurationDiagnosticProfile withSource(String source)

Set the source property: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.

Parameters:

source - the source value to set.

Returns:

the NetworkConfigurationDiagnosticProfile object itself.

Applies to