Class ScopeMapPropertiesUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.ScopeMapPropertiesUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScopeMapPropertiesUpdateParameters>
public final class ScopeMapPropertiesUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<ScopeMapPropertiesUpdateParameters>
The update parameters for scope map properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScopeMapPropertiesUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: The list of scope permissions for registry artifacts.Get the description property: The user friendly description of the scope map.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScopeMapPropertiesUpdateParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActions(List<String> actions) Set the actions property: The list of scope permissions for registry artifacts.withDescription(String description) Set the description property: The user friendly description of the scope map.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
-
ScopeMapPropertiesUpdateParameters
public ScopeMapPropertiesUpdateParameters()Creates an instance of ScopeMapPropertiesUpdateParameters class.
-
-
Method Details
-
description
Get the description property: The user friendly description of the scope map.- Returns:
- the description value.
-
withDescription
Set the description property: The user friendly description of the scope map.- Parameters:
description- the description value to set.- Returns:
- the ScopeMapPropertiesUpdateParameters object itself.
-
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
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 ScopeMapPropertiesUpdateParameters 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<ScopeMapPropertiesUpdateParameters>- Throws:
IOException
-
fromJson
public static ScopeMapPropertiesUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ScopeMapPropertiesUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ScopeMapPropertiesUpdateParameters 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 ScopeMapPropertiesUpdateParameters.
-