ScopeMapPropertiesUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.ScopeMapPropertiesUpdateParameters

Implements

public final class ScopeMapPropertiesUpdateParameters
implements JsonSerializable<ScopeMapPropertiesUpdateParameters>

The update parameters for scope map properties.

Constructor Summary

Constructor Description
ScopeMapPropertiesUpdateParameters()

Creates an instance of ScopeMapPropertiesUpdateParameters class.

Method Summary

Modifier and Type Method and Description
List<String> actions()

Get the actions property: The list of scope permissions for registry artifacts.

String description()

Get the description property: The user friendly description of the scope map.

static ScopeMapPropertiesUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of ScopeMapPropertiesUpdateParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScopeMapPropertiesUpdateParameters withActions(List<String> actions)

Set the actions property: The list of scope permissions for registry artifacts.

ScopeMapPropertiesUpdateParameters withDescription(String description)

Set the description property: The user friendly description of the scope map.

Methods inherited from java.lang.Object

Constructor Details

ScopeMapPropertiesUpdateParameters

public ScopeMapPropertiesUpdateParameters()

Creates an instance of ScopeMapPropertiesUpdateParameters class.

Method Details

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.

description

public String description()

Get the description property: The user friendly description of the scope map.

Returns:

the description value.

fromJson

public static ScopeMapPropertiesUpdateParameters fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActions

public ScopeMapPropertiesUpdateParameters 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 ScopeMapPropertiesUpdateParameters object itself.

withDescription

public ScopeMapPropertiesUpdateParameters withDescription(String description)

Set the description property: The user friendly description of the scope map.

Parameters:

description - the description value to set.

Returns:

the ScopeMapPropertiesUpdateParameters object itself.

Applies to