Class CsmOperationDisplay
java.lang.Object
com.azure.resourcemanager.appservice.models.CsmOperationDisplay
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CsmOperationDisplay>
public final class CsmOperationDisplay
extends Object
implements com.azure.json.JsonSerializable<CsmOperationDisplay>
Meta data about operation used for display in portal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description property.static CsmOperationDisplay
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CsmOperationDisplay from the JsonReader.Get the operation property: The operation property.provider()
Get the provider property: The provider property.resource()
Get the resource property: The resource property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDescription
(String description) Set the description property: The description property.withOperation
(String operation) Set the operation property: The operation property.withProvider
(String provider) Set the provider property: The provider property.withResource
(String resource) Set the resource property: The resource property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CsmOperationDisplay
public CsmOperationDisplay()Creates an instance of CsmOperationDisplay class.
-
-
Method Details
-
provider
Get the provider property: The provider property.- Returns:
- the provider value.
-
withProvider
Set the provider property: The provider property.- Parameters:
provider
- the provider value to set.- Returns:
- the CsmOperationDisplay object itself.
-
resource
Get the resource property: The resource property.- Returns:
- the resource value.
-
withResource
Set the resource property: The resource property.- Parameters:
resource
- the resource value to set.- Returns:
- the CsmOperationDisplay object itself.
-
operation
Get the operation property: The operation property.- Returns:
- the operation value.
-
withOperation
Set the operation property: The operation property.- Parameters:
operation
- the operation value to set.- Returns:
- the CsmOperationDisplay object itself.
-
description
Get the description property: The description property.- Returns:
- the description value.
-
withDescription
Set the description property: The description property.- Parameters:
description
- the description value to set.- Returns:
- the CsmOperationDisplay object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CsmOperationDisplay>
- Throws:
IOException
-
fromJson
Reads an instance of CsmOperationDisplay from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CsmOperationDisplay 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 CsmOperationDisplay.
-