Class SecurityContextCapabilitiesDefinition
java.lang.Object
com.azure.resourcemanager.containerinstance.models.SecurityContextCapabilitiesDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecurityContextCapabilitiesDefinition>
public final class SecurityContextCapabilitiesDefinition
extends Object
implements com.azure.json.JsonSerializable<SecurityContextCapabilitiesDefinition>
The capabilities to add or drop from a container.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SecurityContextCapabilitiesDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionadd()Get the add property: The capabilities to add to the container.drop()Get the drop property: The capabilities to drop from the container.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecurityContextCapabilitiesDefinition from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the add property: The capabilities to add to the container.Set the drop property: The capabilities to drop from the container.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
-
SecurityContextCapabilitiesDefinition
public SecurityContextCapabilitiesDefinition()Creates an instance of SecurityContextCapabilitiesDefinition class.
-
-
Method Details
-
add
Get the add property: The capabilities to add to the container.- Returns:
- the add value.
-
withAdd
Set the add property: The capabilities to add to the container.- Parameters:
add- the add value to set.- Returns:
- the SecurityContextCapabilitiesDefinition object itself.
-
drop
Get the drop property: The capabilities to drop from the container.- Returns:
- the drop value.
-
withDrop
Set the drop property: The capabilities to drop from the container.- Parameters:
drop- the drop value to set.- Returns:
- the SecurityContextCapabilitiesDefinition 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<SecurityContextCapabilitiesDefinition>- Throws:
IOException
-
fromJson
public static SecurityContextCapabilitiesDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SecurityContextCapabilitiesDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SecurityContextCapabilitiesDefinition 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 SecurityContextCapabilitiesDefinition.
-