Class ApiOperationDisplay
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.models.ApiOperationDisplay
-
public final class ApiOperationDisplay extends Object
The object that represents the operation.
-
-
Constructor Summary
Constructors Constructor Description ApiOperationDisplay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
Get the description property: The description of the operation.String
operation()
Get the operation property: Operation type: Read, write, delete, etc.String
provider()
Get the provider property: Service provider: Microsoft.StorageCache.String
resource()
Get the resource property: Resource on which the operation is performed: Cache, etc.void
validate()
Validates the instance.ApiOperationDisplay
withDescription(String description)
Set the description property: The description of the operation.ApiOperationDisplay
withOperation(String operation)
Set the operation property: Operation type: Read, write, delete, etc.ApiOperationDisplay
withProvider(String provider)
Set the provider property: Service provider: Microsoft.StorageCache.ApiOperationDisplay
withResource(String resource)
Set the resource property: Resource on which the operation is performed: Cache, etc.
-
-
-
Method Detail
-
operation
public String operation()
Get the operation property: Operation type: Read, write, delete, etc.- Returns:
- the operation value.
-
withOperation
public ApiOperationDisplay withOperation(String operation)
Set the operation property: Operation type: Read, write, delete, etc.- Parameters:
operation
- the operation value to set.- Returns:
- the ApiOperationDisplay object itself.
-
provider
public String provider()
Get the provider property: Service provider: Microsoft.StorageCache.- Returns:
- the provider value.
-
withProvider
public ApiOperationDisplay withProvider(String provider)
Set the provider property: Service provider: Microsoft.StorageCache.- Parameters:
provider
- the provider value to set.- Returns:
- the ApiOperationDisplay object itself.
-
resource
public String resource()
Get the resource property: Resource on which the operation is performed: Cache, etc.- Returns:
- the resource value.
-
withResource
public ApiOperationDisplay withResource(String resource)
Set the resource property: Resource on which the operation is performed: Cache, etc.- Parameters:
resource
- the resource value to set.- Returns:
- the ApiOperationDisplay object itself.
-
description
public String description()
Get the description property: The description of the operation.- Returns:
- the description value.
-
withDescription
public ApiOperationDisplay withDescription(String description)
Set the description property: The description of the operation.- Parameters:
description
- the description value to set.- Returns:
- the ApiOperationDisplay object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-