QosPortRange Class

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

Implements

public final class QosPortRange
implements JsonSerializable<QosPortRange>

Qos Traffic Profiler Port range properties.

Constructor Summary

Constructor Description
QosPortRange()

Creates an instance of QosPortRange class.

Method Summary

Modifier and Type Method and Description
Integer end()

Get the end property: Qos Port Range end.

static QosPortRange fromJson(JsonReader jsonReader)

Reads an instance of QosPortRange from the JsonReader.

Integer start()

Get the start property: Qos Port Range start.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QosPortRange withEnd(Integer end)

Set the end property: Qos Port Range end.

QosPortRange withStart(Integer start)

Set the start property: Qos Port Range start.

Methods inherited from java.lang.Object

Constructor Details

QosPortRange

public QosPortRange()

Creates an instance of QosPortRange class.

Method Details

end

public Integer end()

Get the end property: Qos Port Range end.

Returns:

the end value.

fromJson

public static QosPortRange fromJson(JsonReader jsonReader)

Reads an instance of QosPortRange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QosPortRange 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 QosPortRange.

start

public Integer start()

Get the start property: Qos Port Range start.

Returns:

the start value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnd

public QosPortRange withEnd(Integer end)

Set the end property: Qos Port Range end.

Parameters:

end - the end value to set.

Returns:

the QosPortRange object itself.

withStart

public QosPortRange withStart(Integer start)

Set the start property: Qos Port Range start.

Parameters:

start - the start value to set.

Returns:

the QosPortRange object itself.

Applies to