Class DscpConfigurationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.DscpConfigurationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DscpConfigurationInner
extends com.azure.core.management.Resource
Differentiated Services Code Point configuration for any given network interface.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DscpConfigurationInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the associatedNetworkInterfaces property: Associated Network Interfaces to the DSCP Configuration.Get the destinationIpRanges property: Destination IP ranges.Get the destinationPortRanges property: Destination port ranges.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static DscpConfigurationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DscpConfigurationInner from the JsonReader.id()Get the id property: Resource ID.markings()Get the markings property: List of markings to be used in the configuration.name()Get the name property: The name of the resource.protocol()Get the protocol property: RNM supported protocol types.Get the provisioningState property: The provisioning state of the DSCP Configuration resource.Get the qosCollectionId property: Qos Collection ID generated by RNM.Get the qosDefinitionCollection property: QoS object definitions.Get the resourceGuid property: The resource GUID property of the DSCP Configuration resource.Get the sourceIpRanges property: Source IP ranges.Get the sourcePortRanges property: Sources port ranges.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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.Set the id property: Resource ID.withLocation(String location) 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.withQosDefinitionCollection(List<QosDefinition> qosDefinitionCollection) Set the qosDefinitionCollection property: QoS object definitions.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 com.azure.core.management.Resource
location, tagsMethods 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
-
DscpConfigurationInner
public DscpConfigurationInner()Creates an instance of DscpConfigurationInner class.
-
-
Method Details
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the DscpConfigurationInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
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 DscpConfigurationInner 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 DscpConfigurationInner 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 DscpConfigurationInner 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 DscpConfigurationInner 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 DscpConfigurationInner 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 DscpConfigurationInner object itself.
-
qosDefinitionCollection
Get the qosDefinitionCollection property: QoS object definitions.- Returns:
- the qosDefinitionCollection value.
-
withQosDefinitionCollection
public DscpConfigurationInner withQosDefinitionCollection(List<QosDefinition> qosDefinitionCollection) Set the qosDefinitionCollection property: QoS object definitions.- Parameters:
qosDefinitionCollection- the qosDefinitionCollection value to set.- Returns:
- the DscpConfigurationInner object itself.
-
qosCollectionId
Get the qosCollectionId property: Qos Collection ID generated by RNM.- Returns:
- the qosCollectionId value.
-
associatedNetworkInterfaces
Get the associatedNetworkInterfaces property: Associated Network Interfaces to the DSCP Configuration.- Returns:
- the associatedNetworkInterfaces value.
-
resourceGuid
Get the resourceGuid property: The resource GUID property of the DSCP Configuration resource.- Returns:
- the resourceGuid value.
-
provisioningState
Get the provisioningState property: The provisioning state of the DSCP Configuration resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static DscpConfigurationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DscpConfigurationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DscpConfigurationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DscpConfigurationInner.
-