Class QosDefinition
java.lang.Object
com.azure.resourcemanager.network.models.QosDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QosDefinition>
public final class QosDefinition
extends Object
implements com.azure.json.JsonSerializable<QosDefinition>
Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationIpRanges property: Destination IP ranges.Get the destinationPortRanges property: Destination port ranges.static QosDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QosDefinition from the JsonReader.markings()Get the markings property: List of markings to be used in the configuration.protocol()Get the protocol property: RNM supported protocol types.Get the sourceIpRanges property: Source IP ranges.Get the sourcePortRanges property: Sources port ranges.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationIpRanges(List<QosIpRange> destinationIpRanges) Set the destinationIpRanges property: Destination IP ranges.withDestinationPortRanges(List<QosPortRange> destinationPortRanges) Set the destinationPortRanges property: Destination port ranges.withMarkings(List<Integer> markings) Set the markings property: List of markings to be used in the configuration.withProtocol(ProtocolType protocol) Set the protocol property: RNM supported protocol types.withSourceIpRanges(List<QosIpRange> sourceIpRanges) Set the sourceIpRanges property: Source IP ranges.withSourcePortRanges(List<QosPortRange> sourcePortRanges) Set the sourcePortRanges property: Sources port ranges.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
-
QosDefinition
public QosDefinition()Creates an instance of QosDefinition class.
-
-
Method Details
-
markings
Get the markings property: List of markings to be used in the configuration.- Returns:
- the markings value.
-
withMarkings
Set the markings property: List of markings to be used in the configuration.- Parameters:
markings- the markings value to set.- Returns:
- the QosDefinition object itself.
-
sourceIpRanges
Get the sourceIpRanges property: Source IP ranges.- Returns:
- the sourceIpRanges value.
-
withSourceIpRanges
Set the sourceIpRanges property: Source IP ranges.- Parameters:
sourceIpRanges- the sourceIpRanges value to set.- Returns:
- the QosDefinition object itself.
-
destinationIpRanges
Get the destinationIpRanges property: Destination IP ranges.- Returns:
- the destinationIpRanges value.
-
withDestinationIpRanges
Set the destinationIpRanges property: Destination IP ranges.- Parameters:
destinationIpRanges- the destinationIpRanges value to set.- Returns:
- the QosDefinition object itself.
-
sourcePortRanges
Get the sourcePortRanges property: Sources port ranges.- Returns:
- the sourcePortRanges value.
-
withSourcePortRanges
Set the sourcePortRanges property: Sources port ranges.- Parameters:
sourcePortRanges- the sourcePortRanges value to set.- Returns:
- the QosDefinition object itself.
-
destinationPortRanges
Get the destinationPortRanges property: Destination port ranges.- Returns:
- the destinationPortRanges value.
-
withDestinationPortRanges
Set the destinationPortRanges property: Destination port ranges.- Parameters:
destinationPortRanges- the destinationPortRanges value to set.- Returns:
- the QosDefinition object itself.
-
protocol
Get the protocol property: RNM supported protocol types.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: RNM supported protocol types.- Parameters:
protocol- the protocol value to set.- Returns:
- the QosDefinition 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<QosDefinition>- Throws:
IOException
-
fromJson
Reads an instance of QosDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QosDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the QosDefinition.
-