Class BreakOutCategoryPolicies
java.lang.Object
com.azure.resourcemanager.network.models.BreakOutCategoryPolicies
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BreakOutCategoryPolicies>
public final class BreakOutCategoryPolicies
extends Object
implements com.azure.json.JsonSerializable<BreakOutCategoryPolicies>
Network Virtual Appliance Sku Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BreakOutCategoryPolicies class. -
Method Summary
Modifier and TypeMethodDescriptionallow()Get the allow property: Flag to control breakout of o365 allow category.Get the defaultProperty property: Flag to control breakout of o365 default category.static BreakOutCategoryPoliciesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BreakOutCategoryPolicies from the JsonReader.optimize()Get the optimize property: Flag to control breakout of o365 optimize category.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the allow property: Flag to control breakout of o365 allow category.withDefaultProperty(Boolean defaultProperty) Set the defaultProperty property: Flag to control breakout of o365 default category.withOptimize(Boolean optimize) Set the optimize property: Flag to control breakout of o365 optimize category.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
-
BreakOutCategoryPolicies
public BreakOutCategoryPolicies()Creates an instance of BreakOutCategoryPolicies class.
-
-
Method Details
-
allow
Get the allow property: Flag to control breakout of o365 allow category.- Returns:
- the allow value.
-
withAllow
Set the allow property: Flag to control breakout of o365 allow category.- Parameters:
allow- the allow value to set.- Returns:
- the BreakOutCategoryPolicies object itself.
-
optimize
Get the optimize property: Flag to control breakout of o365 optimize category.- Returns:
- the optimize value.
-
withOptimize
Set the optimize property: Flag to control breakout of o365 optimize category.- Parameters:
optimize- the optimize value to set.- Returns:
- the BreakOutCategoryPolicies object itself.
-
defaultProperty
Get the defaultProperty property: Flag to control breakout of o365 default category.- Returns:
- the defaultProperty value.
-
withDefaultProperty
Set the defaultProperty property: Flag to control breakout of o365 default category.- Parameters:
defaultProperty- the defaultProperty value to set.- Returns:
- the BreakOutCategoryPolicies 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<BreakOutCategoryPolicies>- Throws:
IOException
-
fromJson
public static BreakOutCategoryPolicies fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BreakOutCategoryPolicies from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BreakOutCategoryPolicies 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 BreakOutCategoryPolicies.
-