Class OperationDefinitionInner
java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.OperationDefinitionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationDefinitionInner>
public final class OperationDefinitionInner
extends Object
implements com.azure.json.JsonSerializable<OperationDefinitionInner>
The definition of a container registry operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationDefinitionInner class. -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Get the display property: The display information for the container registry operation.static OperationDefinitionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationDefinitionInner from the JsonReader.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.name()Get the name property: Operation name: {provider}/{resource}/{operation}.origin()Get the origin property: The origin information of the container registry operation.Get the serviceSpecification property: The definition of Azure Monitoring service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDisplay(OperationDisplayDefinition display) Set the display property: The display information for the container registry operation.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.Set the name property: Operation name: {provider}/{resource}/{operation}.withOrigin(String origin) Set the origin property: The origin information of the container registry operation.withServiceSpecification(OperationServiceSpecificationDefinition serviceSpecification) Set the serviceSpecification property: The definition of Azure Monitoring service.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
-
OperationDefinitionInner
public OperationDefinitionInner()Creates an instance of OperationDefinitionInner class.
-
-
Method Details
-
origin
Get the origin property: The origin information of the container registry operation.- Returns:
- the origin value.
-
withOrigin
Set the origin property: The origin information of the container registry operation.- Parameters:
origin- the origin value to set.- Returns:
- the OperationDefinitionInner object itself.
-
name
Get the name property: Operation name: {provider}/{resource}/{operation}.- Returns:
- the name value.
-
withName
Set the name property: Operation name: {provider}/{resource}/{operation}.- Parameters:
name- the name value to set.- Returns:
- the OperationDefinitionInner object itself.
-
display
Get the display property: The display information for the container registry operation.- Returns:
- the display value.
-
withDisplay
Set the display property: The display information for the container registry operation.- Parameters:
display- the display value to set.- Returns:
- the OperationDefinitionInner object itself.
-
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.
-
withIsDataAction
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.
-
serviceSpecification
Get the serviceSpecification property: The definition of Azure Monitoring service.- Returns:
- the serviceSpecification value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationDefinitionInner>- Throws:
IOException
-
fromJson
public static OperationDefinitionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-