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 Details

    • NetworkIntentPolicyConfiguration

      public NetworkIntentPolicyConfiguration()
      Creates an instance of NetworkIntentPolicyConfiguration class.
  • Method Details

    • networkIntentPolicyName

      public String networkIntentPolicyName()
      Get the networkIntentPolicyName property: The name of the Network Intent Policy for storing in target subscription.
      Returns:
      the networkIntentPolicyName value.
    • withNetworkIntentPolicyName

      public NetworkIntentPolicyConfiguration withNetworkIntentPolicyName(String networkIntentPolicyName)
      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

      public NetworkIntentPolicy 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.