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