Class ResourceName
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceName
Name and Type of the Resource.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResourceName
public ResourceName()Creates an instance of ResourceName class.
-
-
Method Details
-
name
Get the name property: Name of the resource.- Returns:
- the name value.
-
withName
Set the name property: Name of the resource.- Parameters:
name- the name value to set.- Returns:
- the ResourceName object itself.
-
type
Get the type property: The type of the resource.- Returns:
- the type value.
-
withType
Set the type property: The type of the resource.- Parameters:
type- the type value to set.- Returns:
- the ResourceName object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-