QosDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.QosDefinition

Implements

public final class QosDefinition
implements JsonSerializable<QosDefinition>

Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking.

Constructor Summary

Constructor Description
QosDefinition()

Creates an instance of QosDefinition class.

Method Summary

Modifier and Type Method and Description
List<QosIpRange> destinationIpRanges()

Get the destinationIpRanges property: Destination IP ranges.

List<QosPortRange> destinationPortRanges()

Get the destinationPortRanges property: Destination port ranges.

static QosDefinition fromJson(JsonReader jsonReader)

Reads an instance of QosDefinition from the JsonReader.

List<Integer> markings()

Get the markings property: List of markings to be used in the configuration.

ProtocolType protocol()

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QosDefinition withDestinationIpRanges(List<QosIpRange> destinationIpRanges)

Set the destinationIpRanges property: Destination IP ranges.

QosDefinition withDestinationPortRanges(List<QosPortRange> destinationPortRanges)

Set the destinationPortRanges property: Destination port ranges.

QosDefinition withMarkings(List<Integer> markings)

Set the markings property: List of markings to be used in the configuration.

QosDefinition withProtocol(ProtocolType protocol)

Set the protocol property: RNM supported protocol types.

QosDefinition withSourceIpRanges(List<QosIpRange> sourceIpRanges)

Set the sourceIpRanges property: Source IP ranges.

QosDefinition withSourcePortRanges(List<QosPortRange> sourcePortRanges)

Set the sourcePortRanges property: Sources port ranges.

Methods inherited from java.lang.Object

Constructor Details

QosDefinition

public QosDefinition()

Creates an instance of QosDefinition class.

Method Details

destinationIpRanges

public List destinationIpRanges()

Get the destinationIpRanges property: Destination IP ranges.

Returns:

the destinationIpRanges value.

destinationPortRanges

public List destinationPortRanges()

Get the destinationPortRanges property: Destination port ranges.

Returns:

the destinationPortRanges value.

fromJson

public static QosDefinition fromJson(JsonReader jsonReader)

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.

markings

public List markings()

Get the markings property: List of markings to be used in the configuration.

Returns:

the markings value.

protocol

public ProtocolType protocol()

Get the protocol property: RNM supported protocol types.

Returns:

the protocol value.

sourceIpRanges

public List sourceIpRanges()

Get the sourceIpRanges property: Source IP ranges.

Returns:

the sourceIpRanges value.

sourcePortRanges

public List sourcePortRanges()

Get the sourcePortRanges property: Sources port ranges.

Returns:

the sourcePortRanges value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinationIpRanges

public QosDefinition withDestinationIpRanges(List destinationIpRanges)

Set the destinationIpRanges property: Destination IP ranges.

Parameters:

destinationIpRanges - the destinationIpRanges value to set.

Returns:

the QosDefinition object itself.

withDestinationPortRanges

public QosDefinition withDestinationPortRanges(List destinationPortRanges)

Set the destinationPortRanges property: Destination port ranges.

Parameters:

destinationPortRanges - the destinationPortRanges value to set.

Returns:

the QosDefinition object itself.

withMarkings

public QosDefinition withMarkings(List 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.

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.

withSourceIpRanges

public QosDefinition withSourceIpRanges(List sourceIpRanges)

Set the sourceIpRanges property: Source IP ranges.

Parameters:

sourceIpRanges - the sourceIpRanges value to set.

Returns:

the QosDefinition object itself.

withSourcePortRanges

public QosDefinition withSourcePortRanges(List sourcePortRanges)

Set the sourcePortRanges property: Sources port ranges.

Parameters:

sourcePortRanges - the sourcePortRanges value to set.

Returns:

the QosDefinition object itself.

Applies to