Class NetworkConfigurationDiagnosticProfile
java.lang.Object
com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkConfigurationDiagnosticProfile>
public final class NetworkConfigurationDiagnosticProfile
extends Object
implements com.azure.json.JsonSerializable<NetworkConfigurationDiagnosticProfile>
Parameters to compare with network configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkConfigurationDiagnosticProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destination property: Traffic destination.Get the destinationPort property: Traffic destination port.Get the direction property: The direction of the traffic.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkConfigurationDiagnosticProfile from the JsonReader.protocol()Get the protocol property: Protocol to be verified on.source()Get the source property: Traffic source.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestination(String destination) Set the destination property: Traffic destination.withDestinationPort(String destinationPort) Set the destinationPort property: Traffic destination port.withDirection(Direction direction) Set the direction property: The direction of the traffic.withProtocol(String protocol) Set the protocol property: Protocol to be verified on.withSource(String source) Set the source property: Traffic source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NetworkConfigurationDiagnosticProfile
public NetworkConfigurationDiagnosticProfile()Creates an instance of NetworkConfigurationDiagnosticProfile class.
-
-
Method Details
-
direction
Get the direction property: The direction of the traffic.- Returns:
- the direction value.
-
withDirection
Set the direction property: The direction of the traffic.- Parameters:
direction- the direction value to set.- Returns:
- the NetworkConfigurationDiagnosticProfile object itself.
-
protocol
Get the protocol property: Protocol to be verified on. Accepted values are '*', TCP, UDP.- Returns:
- the protocol value.
-
withProtocol
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.
-
source
Get the source property: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.- Returns:
- the source value.
-
withSource
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.
-
destination
Get the destination property: Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.- Returns:
- the destination value.
-
withDestination
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.
-
destinationPort
Get the destinationPort property: Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).- Returns:
- the destinationPort value.
-
withDestinationPort
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NetworkConfigurationDiagnosticProfile>- Throws:
IOException
-
fromJson
public static NetworkConfigurationDiagnosticProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the NetworkConfigurationDiagnosticProfile.
-