Class ProviderOperation
java.lang.Object
com.azure.resourcemanager.authorization.models.ProviderOperation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProviderOperation>
public final class ProviderOperation
extends Object
implements com.azure.json.JsonSerializable<ProviderOperation>
Operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The operation description.Get the displayName property: The operation display name.static ProviderOperationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProviderOperation from the JsonReader.Get the isDataAction property: The dataAction flag to specify the operation type.name()Get the name property: The operation name.origin()Get the origin property: The operation origin.Get the properties property: The operation properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: The operation description.withDisplayName(String displayName) Set the displayName property: The operation display name.withIsDataAction(Boolean isDataAction) Set the isDataAction property: The dataAction flag to specify the operation type.Set the name property: The operation name.withOrigin(String origin) Set the origin property: The operation origin.withProperties(Object properties) Set the properties property: The operation properties.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
-
ProviderOperation
public ProviderOperation()Creates an instance of ProviderOperation class.
-
-
Method Details
-
name
Get the name property: The operation name.- Returns:
- the name value.
-
withName
Set the name property: The operation name.- Parameters:
name- the name value to set.- Returns:
- the ProviderOperation object itself.
-
displayName
Get the displayName property: The operation display name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The operation display name.- Parameters:
displayName- the displayName value to set.- Returns:
- the ProviderOperation object itself.
-
description
Get the description property: The operation description.- Returns:
- the description value.
-
withDescription
Set the description property: The operation description.- Parameters:
description- the description value to set.- Returns:
- the ProviderOperation object itself.
-
origin
Get the origin property: The operation origin.- Returns:
- the origin value.
-
withOrigin
Set the origin property: The operation origin.- Parameters:
origin- the origin value to set.- Returns:
- the ProviderOperation object itself.
-
properties
Get the properties property: The operation properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: The operation properties.- Parameters:
properties- the properties value to set.- Returns:
- the ProviderOperation object itself.
-
isDataAction
Get the isDataAction property: The dataAction flag to specify the operation type.- Returns:
- the isDataAction value.
-
withIsDataAction
Set the isDataAction property: The dataAction flag to specify the operation type.- Parameters:
isDataAction- the isDataAction value to set.- Returns:
- the ProviderOperation 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<ProviderOperation>- Throws:
IOException
-
fromJson
Reads an instance of ProviderOperation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProviderOperation 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 ProviderOperation.
-