Class ResourceMetadata
java.lang.Object
com.azure.resourcemanager.advisor.models.ResourceMetadata
Recommendation resource metadata.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: The action to view resource.plural()
Get the plural property: The plural user friendly name of resource type.Get the resourceId property: Azure resource Id of the assessed resource.singular()
Get the singular property: The singular user friendly name of resource type.source()
Get the source property: Source from which recommendation is generated.void
validate()
Validates the instance.withAction
(Map<String, Object> action) Set the action property: The action to view resource.withPlural
(String plural) Set the plural property: The plural user friendly name of resource type.withResourceId
(String resourceId) Set the resourceId property: Azure resource Id of the assessed resource.withSingular
(String singular) Set the singular property: The singular user friendly name of resource type.withSource
(String source) Set the source property: Source from which recommendation is generated.
-
Constructor Details
-
ResourceMetadata
public ResourceMetadata()Creates an instance of ResourceMetadata class.
-
-
Method Details
-
resourceId
Get the resourceId property: Azure resource Id of the assessed resource.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Azure resource Id of the assessed resource.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the ResourceMetadata object itself.
-
source
Get the source property: Source from which recommendation is generated.- Returns:
- the source value.
-
withSource
Set the source property: Source from which recommendation is generated.- Parameters:
source
- the source value to set.- Returns:
- the ResourceMetadata object itself.
-
action
Get the action property: The action to view resource.- Returns:
- the action value.
-
withAction
Set the action property: The action to view resource.- Parameters:
action
- the action value to set.- Returns:
- the ResourceMetadata object itself.
-
singular
Get the singular property: The singular user friendly name of resource type. eg: virtual machine.- Returns:
- the singular value.
-
withSingular
Set the singular property: The singular user friendly name of resource type. eg: virtual machine.- Parameters:
singular
- the singular value to set.- Returns:
- the ResourceMetadata object itself.
-
plural
Get the plural property: The plural user friendly name of resource type. eg: virtual machines.- Returns:
- the plural value.
-
withPlural
Set the plural property: The plural user friendly name of resource type. eg: virtual machines.- Parameters:
plural
- the plural value to set.- Returns:
- the ResourceMetadata object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-