Class ResourceName
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.ResourceName
-
public final class ResourceName extends Object
Name and Type of the Resource.
-
-
Constructor Summary
Constructors Constructor Description ResourceName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Name of the resource.Stringtype()Get the type property: The type of the resource.voidvalidate()Validates the instance.ResourceNamewithName(String name)Set the name property: Name of the resource.ResourceNamewithType(String type)Set the type property: The type of the resource.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the resource.- Returns:
- the name value.
-
withName
public ResourceName withName(String name)
Set the name property: Name of the resource.- Parameters:
name- the name value to set.- Returns:
- the ResourceName object itself.
-
type
public String type()
Get the type property: The type of the resource.- Returns:
- the type value.
-
withType
public ResourceName withType(String type)
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.
-
-