Compartilhar via


OperationDefinitionInner Class

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

Implements

public final class OperationDefinitionInner
implements JsonSerializable<OperationDefinitionInner>

The definition of a container registry operation.

Constructor Summary

Constructor Description
OperationDefinitionInner()

Creates an instance of OperationDefinitionInner class.

Method Summary

Modifier and Type Method and Description
OperationDisplayDefinition display()

Get the display property: The display information for the container registry operation.

static OperationDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of OperationDefinitionInner from the JsonReader.

Boolean isDataAction()

Get the isDataAction property: This property indicates if the operation is an action or a data action ref: https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#management-and-data-operations.

String name()

Get the name property: Operation name: {provider}/{resource}/{operation}.

String origin()

Get the origin property: The origin information of the container registry operation.

OperationServiceSpecificationDefinition serviceSpecification()

Get the serviceSpecification property: The definition of Azure Monitoring service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationDefinitionInner withDisplay(OperationDisplayDefinition display)

Set the display property: The display information for the container registry operation.

OperationDefinitionInner withIsDataAction(Boolean isDataAction)

Set the isDataAction property: This property indicates if the operation is an action or a data action ref: https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#management-and-data-operations.

OperationDefinitionInner withName(String name)

Set the name property: Operation name: {provider}/{resource}/{operation}.

OperationDefinitionInner withOrigin(String origin)

Set the origin property: The origin information of the container registry operation.

OperationDefinitionInner withServiceSpecification(OperationServiceSpecificationDefinition serviceSpecification)

Set the serviceSpecification property: The definition of Azure Monitoring service.

Methods inherited from java.lang.Object

Constructor Details

OperationDefinitionInner

public OperationDefinitionInner()

Creates an instance of OperationDefinitionInner class.

Method Details

display

public OperationDisplayDefinition display()

Get the display property: The display information for the container registry operation.

Returns:

the display value.

fromJson

public static OperationDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of OperationDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDataAction

public Boolean isDataAction()

Get the isDataAction property: This property indicates if the operation is an action or a data action ref: https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions\#management-and-data-operations.

Returns:

the isDataAction value.

name

public String name()

Get the name property: Operation name: {provider}/{resource}/{operation}.

Returns:

the name value.

origin

public String origin()

Get the origin property: The origin information of the container registry operation.

Returns:

the origin value.

serviceSpecification

public OperationServiceSpecificationDefinition serviceSpecification()

Get the serviceSpecification property: The definition of Azure Monitoring service.

Returns:

the serviceSpecification value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplay

public OperationDefinitionInner withDisplay(OperationDisplayDefinition display)

Set the display property: The display information for the container registry operation.

Parameters:

display - the display value to set.

Returns:

the OperationDefinitionInner object itself.

withIsDataAction

public OperationDefinitionInner withIsDataAction(Boolean isDataAction)

Set the isDataAction property: This property indicates if the operation is an action or a data action ref: https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions\#management-and-data-operations.

Parameters:

isDataAction - the isDataAction value to set.

Returns:

the OperationDefinitionInner object itself.

withName

public OperationDefinitionInner withName(String name)

Set the name property: Operation name: {provider}/{resource}/{operation}.

Parameters:

name - the name value to set.

Returns:

the OperationDefinitionInner object itself.

withOrigin

public OperationDefinitionInner withOrigin(String origin)

Set the origin property: The origin information of the container registry operation.

Parameters:

origin - the origin value to set.

Returns:

the OperationDefinitionInner object itself.

withServiceSpecification

public OperationDefinitionInner withServiceSpecification(OperationServiceSpecificationDefinition serviceSpecification)

Set the serviceSpecification property: The definition of Azure Monitoring service.

Parameters:

serviceSpecification - the serviceSpecification value to set.

Returns:

the OperationDefinitionInner object itself.

Applies to