Class NetworkIntentPolicyConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.NetworkIntentPolicyConfiguration
Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkIntentPolicyConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the networkIntentPolicyName property: The name of the Network Intent Policy for storing in target subscription.Get the sourceNetworkIntentPolicy property: Source network intent policy.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.
-
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.
-