OperationDisplayDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. OperationDisplayDefinition
- com.
Implements
public final class OperationDisplayDefinition
implements JsonSerializable<OperationDisplayDefinition>
The display information for a container registry operation.
Constructor Summary
Constructor | Description |
---|---|
OperationDisplayDefinition() |
Creates an instance of Operation |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: The description for the operation. |
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
String |
operation()
Get the operation property: The operation that users can perform. |
String |
provider()
Get the provider property: The resource provider name: Microsoft. |
String |
resource()
Get the resource property: The resource on which the operation is performed. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Operation |
withDescription(String description)
Set the description property: The description for the operation. |
Operation |
withOperation(String operation)
Set the operation property: The operation that users can perform. |
Operation |
withProvider(String provider)
Set the provider property: The resource provider name: Microsoft. |
Operation |
withResource(String resource)
Set the resource property: The resource on which the operation is performed. |
Methods inherited from java.lang.Object
Constructor Details
OperationDisplayDefinition
public OperationDisplayDefinition()
Creates an instance of OperationDisplayDefinition class.
Method Details
description
public String description()
Get the description property: The description for the operation.
Returns:
fromJson
public static OperationDisplayDefinition fromJson(JsonReader jsonReader)
Reads an instance of OperationDisplayDefinition from the JsonReader.
Parameters:
Returns:
Throws:
operation
public String operation()
Get the operation property: The operation that users can perform.
Returns:
provider
public String provider()
Get the provider property: The resource provider name: Microsoft.ContainerRegistry.
Returns:
resource
public String resource()
Get the resource property: The resource on which the operation is performed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public OperationDisplayDefinition withDescription(String description)
Set the description property: The description for the operation.
Parameters:
Returns:
withOperation
public OperationDisplayDefinition withOperation(String operation)
Set the operation property: The operation that users can perform.
Parameters:
Returns:
withProvider
public OperationDisplayDefinition withProvider(String provider)
Set the provider property: The resource provider name: Microsoft.ContainerRegistry.
Parameters:
Returns:
withResource
public OperationDisplayDefinition withResource(String resource)
Set the resource property: The resource on which the operation is performed.
Parameters:
Returns:
Applies to
Azure SDK for Java