Class SecurityContextCapabilitiesDefinition

java.lang.Object
com.azure.resourcemanager.containerinstance.models.SecurityContextCapabilitiesDefinition

public final class SecurityContextCapabilitiesDefinition extends Object
The capabilities to add or drop from a container.
  • Constructor Details

    • SecurityContextCapabilitiesDefinition

      public SecurityContextCapabilitiesDefinition()
      Creates an instance of SecurityContextCapabilitiesDefinition class.
  • Method Details

    • add

      public List<String> 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

      public List<String> 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.