Class ScopeMapUpdateParameters

java.lang.Object
com.azure.resourcemanager.containerregistry.models.ScopeMapUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<ScopeMapUpdateParameters>

public final class ScopeMapUpdateParameters extends Object implements com.azure.json.JsonSerializable<ScopeMapUpdateParameters>
The properties for updating the scope map.
  • Constructor Details

    • ScopeMapUpdateParameters

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

    • description

      public String description()
      Get the description property: The user friendly description of the scope map.
      Returns:
      the description value.
    • withDescription

      public ScopeMapUpdateParameters withDescription(String description)
      Set the description property: The user friendly description of the scope map.
      Parameters:
      description - the description value to set.
      Returns:
      the ScopeMapUpdateParameters object itself.
    • actions

      public List<String> actions()
      Get the actions property: The list of scope permissions for registry artifacts. E.g. repositories/repository-name/pull, repositories/repository-name/delete.
      Returns:
      the actions value.
    • withActions

      public ScopeMapUpdateParameters withActions(List<String> actions)
      Set the actions property: The list of scope permissions for registry artifacts. E.g. repositories/repository-name/pull, repositories/repository-name/delete.
      Parameters:
      actions - the actions value to set.
      Returns:
      the ScopeMapUpdateParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ScopeMapUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static ScopeMapUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ScopeMapUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ScopeMapUpdateParameters 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 ScopeMapUpdateParameters.