Class NetworkIntentPolicyConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.NetworkIntentPolicyConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkIntentPolicyConfiguration>
public final class NetworkIntentPolicyConfiguration
extends Object
implements com.azure.json.JsonSerializable<NetworkIntentPolicyConfiguration>
Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkIntentPolicyConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkIntentPolicyConfiguration from the JsonReader.Get the networkIntentPolicyName property: The name of the Network Intent Policy for storing in target subscription.Get the sourceNetworkIntentPolicy property: Source network intent policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNetworkIntentPolicyName(String networkIntentPolicyName) Set the networkIntentPolicyName property: The name of the Network Intent Policy for storing in target subscription.withSourceNetworkIntentPolicy(NetworkIntentPolicy sourceNetworkIntentPolicy) Set the sourceNetworkIntentPolicy property: Source network intent policy.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
-
NetworkIntentPolicyConfiguration
public NetworkIntentPolicyConfiguration()Creates an instance of NetworkIntentPolicyConfiguration class.
-
-
Method Details
-
networkIntentPolicyName
Get the networkIntentPolicyName property: The name of the Network Intent Policy for storing in target subscription.- Returns:
- the networkIntentPolicyName value.
-
withNetworkIntentPolicyName
Set the networkIntentPolicyName property: The name of the Network Intent Policy for storing in target subscription.- Parameters:
networkIntentPolicyName- the networkIntentPolicyName value to set.- Returns:
- the NetworkIntentPolicyConfiguration object itself.
-
sourceNetworkIntentPolicy
Get the sourceNetworkIntentPolicy property: Source network intent policy.- Returns:
- the sourceNetworkIntentPolicy value.
-
withSourceNetworkIntentPolicy
public NetworkIntentPolicyConfiguration withSourceNetworkIntentPolicy(NetworkIntentPolicy sourceNetworkIntentPolicy) Set the sourceNetworkIntentPolicy property: Source network intent policy.- Parameters:
sourceNetworkIntentPolicy- the sourceNetworkIntentPolicy value to set.- Returns:
- the NetworkIntentPolicyConfiguration 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<NetworkIntentPolicyConfiguration>- Throws:
IOException
-
fromJson
public static NetworkIntentPolicyConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkIntentPolicyConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkIntentPolicyConfiguration 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 NetworkIntentPolicyConfiguration.
-