Class QosDefinition
- java.lang.Object
-
- com.azure.resourcemanager.network.models.QosDefinition
-
public final class QosDefinition extends Object
Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking.
-
-
Constructor Summary
Constructors Constructor Description QosDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<QosIpRange>destinationIpRanges()Get the destinationIpRanges property: Destination IP ranges.List<QosPortRange>destinationPortRanges()Get the destinationPortRanges property: Destination port ranges.List<Integer>markings()Get the markings property: List of markings to be used in the configuration.ProtocolTypeprotocol()Get the protocol property: RNM supported protocol types.List<QosIpRange>sourceIpRanges()Get the sourceIpRanges property: Source IP ranges.List<QosPortRange>sourcePortRanges()Get the sourcePortRanges property: Sources port ranges.voidvalidate()Validates the instance.QosDefinitionwithDestinationIpRanges(List<QosIpRange> destinationIpRanges)Set the destinationIpRanges property: Destination IP ranges.QosDefinitionwithDestinationPortRanges(List<QosPortRange> destinationPortRanges)Set the destinationPortRanges property: Destination port ranges.QosDefinitionwithMarkings(List<Integer> markings)Set the markings property: List of markings to be used in the configuration.QosDefinitionwithProtocol(ProtocolType protocol)Set the protocol property: RNM supported protocol types.QosDefinitionwithSourceIpRanges(List<QosIpRange> sourceIpRanges)Set the sourceIpRanges property: Source IP ranges.QosDefinitionwithSourcePortRanges(List<QosPortRange> sourcePortRanges)Set the sourcePortRanges property: Sources port ranges.
-
-
-
Method Detail
-
markings
public List<Integer> markings()
Get the markings property: List of markings to be used in the configuration.- Returns:
- the markings value.
-
withMarkings
public QosDefinition withMarkings(List<Integer> markings)
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
public List<QosIpRange> sourceIpRanges()
Get the sourceIpRanges property: Source IP ranges.- Returns:
- the sourceIpRanges value.
-
withSourceIpRanges
public QosDefinition withSourceIpRanges(List<QosIpRange> sourceIpRanges)
Set the sourceIpRanges property: Source IP ranges.- Parameters:
sourceIpRanges- the sourceIpRanges value to set.- Returns:
- the QosDefinition object itself.
-
destinationIpRanges
public List<QosIpRange> destinationIpRanges()
Get the destinationIpRanges property: Destination IP ranges.- Returns:
- the destinationIpRanges value.
-
withDestinationIpRanges
public QosDefinition withDestinationIpRanges(List<QosIpRange> destinationIpRanges)
Set the destinationIpRanges property: Destination IP ranges.- Parameters:
destinationIpRanges- the destinationIpRanges value to set.- Returns:
- the QosDefinition object itself.
-
sourcePortRanges
public List<QosPortRange> sourcePortRanges()
Get the sourcePortRanges property: Sources port ranges.- Returns:
- the sourcePortRanges value.
-
withSourcePortRanges
public QosDefinition withSourcePortRanges(List<QosPortRange> sourcePortRanges)
Set the sourcePortRanges property: Sources port ranges.- Parameters:
sourcePortRanges- the sourcePortRanges value to set.- Returns:
- the QosDefinition object itself.
-
destinationPortRanges
public List<QosPortRange> destinationPortRanges()
Get the destinationPortRanges property: Destination port ranges.- Returns:
- the destinationPortRanges value.
-
withDestinationPortRanges
public QosDefinition withDestinationPortRanges(List<QosPortRange> destinationPortRanges)
Set the destinationPortRanges property: Destination port ranges.- Parameters:
destinationPortRanges- the destinationPortRanges value to set.- Returns:
- the QosDefinition object itself.
-
protocol
public ProtocolType protocol()
Get the protocol property: RNM supported protocol types.- Returns:
- the protocol value.
-
withProtocol
public QosDefinition withProtocol(ProtocolType protocol)
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.
-
-