Class NetworkConfigurationDiagnosticProfile
- java.lang.Object
-
- com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticProfile
-
public final class NetworkConfigurationDiagnosticProfile extends Object
Parameters to compare with network configuration.
-
-
Constructor Summary
Constructors Constructor Description NetworkConfigurationDiagnosticProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdestination()Get the destination property: Traffic destination.StringdestinationPort()Get the destinationPort property: Traffic destination port.Directiondirection()Get the direction property: The direction of the traffic.Stringprotocol()Get the protocol property: Protocol to be verified on.Stringsource()Get the source property: Traffic source.voidvalidate()Validates the instance.NetworkConfigurationDiagnosticProfilewithDestination(String destination)Set the destination property: Traffic destination.NetworkConfigurationDiagnosticProfilewithDestinationPort(String destinationPort)Set the destinationPort property: Traffic destination port.NetworkConfigurationDiagnosticProfilewithDirection(Direction direction)Set the direction property: The direction of the traffic.NetworkConfigurationDiagnosticProfilewithProtocol(String protocol)Set the protocol property: Protocol to be verified on.NetworkConfigurationDiagnosticProfilewithSource(String source)Set the source property: Traffic source.
-
-
-
Method Detail
-
direction
public Direction direction()
Get the direction property: The direction of the traffic.- Returns:
- the direction value.
-
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.
-
protocol
public String protocol()
Get the protocol property: Protocol to be verified on. Accepted values are '*', TCP, UDP.- Returns:
- the protocol value.
-
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.
-
source
public String source()
Get the source property: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.- Returns:
- the source value.
-
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.
-
destination
public String destination()
Get the destination property: Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.- Returns:
- the destination value.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-