Class Port
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.Port
Properties of a network port.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backendPort property: Backend port of the target virtual machine.Get the transportProtocol property: Protocol type of the port.void
validate()
Validates the instance.withBackendPort
(Integer backendPort) Set the backendPort property: Backend port of the target virtual machine.withTransportProtocol
(TransportProtocol transportProtocol) Set the transportProtocol property: Protocol type of the port.
-
Constructor Details
-
Port
public Port()Creates an instance of Port class.
-
-
Method Details
-
transportProtocol
Get the transportProtocol property: Protocol type of the port.- Returns:
- the transportProtocol value.
-
withTransportProtocol
Set the transportProtocol property: Protocol type of the port.- Parameters:
transportProtocol
- the transportProtocol value to set.- Returns:
- the Port object itself.
-
backendPort
Get the backendPort property: Backend port of the target virtual machine.- Returns:
- the backendPort value.
-
withBackendPort
Set the backendPort property: Backend port of the target virtual machine.- Parameters:
backendPort
- the backendPort value to set.- Returns:
- the Port object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-