Class SecurityContextCapabilitiesDefinition
java.lang.Object
com.azure.resourcemanager.containerinstance.models.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.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.
-
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.
-