Compartilhar via


OperationDisplayDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.OperationDisplayDefinition

Implements

public final class OperationDisplayDefinition
implements JsonSerializable<OperationDisplayDefinition>

The display information for a container registry operation.

Constructor Summary

Constructor Description
OperationDisplayDefinition()

Creates an instance of OperationDisplayDefinition class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description for the operation.

static OperationDisplayDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationDisplayDefinition from the JsonReader.

String operation()

Get the operation property: The operation that users can perform.

String provider()

Get the provider property: The resource provider name: Microsoft.ContainerRegistry.

String resource()

Get the resource property: The resource on which the operation is performed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationDisplayDefinition withDescription(String description)

Set the description property: The description for the operation.

OperationDisplayDefinition withOperation(String operation)

Set the operation property: The operation that users can perform.

OperationDisplayDefinition withProvider(String provider)

Set the provider property: The resource provider name: Microsoft.ContainerRegistry.

OperationDisplayDefinition withResource(String resource)

Set the resource property: The resource on which the operation is performed.

Methods inherited from java.lang.Object

Constructor Details

OperationDisplayDefinition

public OperationDisplayDefinition()

Creates an instance of OperationDisplayDefinition class.

Method Details

description

public String description()

Get the description property: The description for the operation.

Returns:

the description value.

fromJson

public static OperationDisplayDefinition fromJson(JsonReader jsonReader)

Reads an instance of OperationDisplayDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationDisplayDefinition 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 OperationDisplayDefinition.

operation

public String operation()

Get the operation property: The operation that users can perform.

Returns:

the operation value.

provider

public String provider()

Get the provider property: The resource provider name: Microsoft.ContainerRegistry.

Returns:

the provider value.

resource

public String resource()

Get the resource property: The resource on which the operation is performed.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public OperationDisplayDefinition withDescription(String description)

Set the description property: The description for the operation.

Parameters:

description - the description value to set.

Returns:

the OperationDisplayDefinition object itself.

withOperation

public OperationDisplayDefinition withOperation(String operation)

Set the operation property: The operation that users can perform.

Parameters:

operation - the operation value to set.

Returns:

the OperationDisplayDefinition object itself.

withProvider

public OperationDisplayDefinition withProvider(String provider)

Set the provider property: The resource provider name: Microsoft.ContainerRegistry.

Parameters:

provider - the provider value to set.

Returns:

the OperationDisplayDefinition object itself.

withResource

public OperationDisplayDefinition withResource(String resource)

Set the resource property: The resource on which the operation is performed.

Parameters:

resource - the resource value to set.

Returns:

the OperationDisplayDefinition object itself.

Applies to