NetworkConfigurationDiagnosticProfile Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. NetworkConfigurationDiagnosticProfile
- com.
Implements
public final class NetworkConfigurationDiagnosticProfile
implements JsonSerializable<NetworkConfigurationDiagnosticProfile>
Parameters to compare with network configuration.
Constructor Summary
Constructor | Description |
---|---|
NetworkConfigurationDiagnosticProfile() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
destination()
Get the destination property: Traffic destination. |
String |
destinationPort()
Get the destination |
Direction |
direction()
Get the direction property: The direction of the traffic. |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
String |
protocol()
Get the protocol property: Protocol to be verified on. |
String |
source()
Get the source property: Traffic source. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Network |
withDestination(String destination)
Set the destination property: Traffic destination. |
Network |
withDestinationPort(String destinationPort)
Set the destination |
Network |
withDirection(Direction direction)
Set the direction property: The direction of the traffic. |
Network |
withProtocol(String protocol)
Set the protocol property: Protocol to be verified on. |
Network |
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:
destinationPort
public String destinationPort()
Get the destinationPort property: Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).
Returns:
direction
public Direction direction()
Get the direction property: The direction of the traffic.
Returns:
fromJson
public static NetworkConfigurationDiagnosticProfile fromJson(JsonReader jsonReader)
Reads an instance of NetworkConfigurationDiagnosticProfile from the JsonReader.
Parameters:
Returns:
Throws:
protocol
public String protocol()
Get the protocol property: Protocol to be verified on. Accepted values are '*', TCP, UDP.
Returns:
source
public String source()
Get the source property: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
Returns:
toJson
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:
Returns:
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:
Returns:
withDirection
public NetworkConfigurationDiagnosticProfile withDirection(Direction direction)
Set the direction property: The direction of the traffic.
Parameters:
Returns:
withProtocol
public NetworkConfigurationDiagnosticProfile withProtocol(String protocol)
Set the protocol property: Protocol to be verified on. Accepted values are '*', TCP, UDP.
Parameters:
Returns:
withSource
public NetworkConfigurationDiagnosticProfile withSource(String source)
Set the source property: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
Parameters:
Returns:
Applies to
Azure SDK for Java