Class IntentContent
java.lang.Object
com.azure.resourcemanager.network.models.IntentContent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IntentContent>
public final class IntentContent
extends Object
implements com.azure.json.JsonSerializable<IntentContent>
Intent information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description property.Get the destinationResourceId property: Destination resource id of the intent.static IntentContentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IntentContent from the JsonReader.Get the ipTraffic property: IP traffic information.Get the sourceResourceId property: Source resource id of the intent.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: The description property.withDestinationResourceId(String destinationResourceId) Set the destinationResourceId property: Destination resource id of the intent.withIpTraffic(IpTraffic ipTraffic) Set the ipTraffic property: IP traffic information.withSourceResourceId(String sourceResourceId) Set the sourceResourceId property: Source resource id of the intent.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
-
IntentContent
public IntentContent()Creates an instance of IntentContent class.
-
-
Method Details
-
description
Get the description property: The description property.- Returns:
- the description value.
-
withDescription
Set the description property: The description property.- Parameters:
description- the description value to set.- Returns:
- the IntentContent object itself.
-
sourceResourceId
Get the sourceResourceId property: Source resource id of the intent.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
Set the sourceResourceId property: Source resource id of the intent.- Parameters:
sourceResourceId- the sourceResourceId value to set.- Returns:
- the IntentContent object itself.
-
destinationResourceId
Get the destinationResourceId property: Destination resource id of the intent.- Returns:
- the destinationResourceId value.
-
withDestinationResourceId
Set the destinationResourceId property: Destination resource id of the intent.- Parameters:
destinationResourceId- the destinationResourceId value to set.- Returns:
- the IntentContent object itself.
-
ipTraffic
Get the ipTraffic property: IP traffic information.- Returns:
- the ipTraffic value.
-
withIpTraffic
Set the ipTraffic property: IP traffic information.- Parameters:
ipTraffic- the ipTraffic value to set.- Returns:
- the IntentContent 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<IntentContent>- Throws:
IOException
-
fromJson
Reads an instance of IntentContent from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IntentContent 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 IntentContent.
-