Class TargetResource
java.lang.Object
com.azure.resourcemanager.resources.models.TargetResource
Target resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid()Get the id property: The ID of the resource.Get the resourceName property: The name of the resource.Get the resourceType property: The type of the resource.voidvalidate()Validates the instance.Set the id property: The ID of the resource.withResourceName(String resourceName) Set the resourceName property: The name of the resource.withResourceType(String resourceType) Set the resourceType property: The type of the resource.
-
Constructor Details
-
TargetResource
public TargetResource()
-
-
Method Details
-
id
Get the id property: The ID of the resource.- Returns:
- the id value.
-
withId
Set the id property: The ID of the resource.- Parameters:
id- the id value to set.- Returns:
- the TargetResource object itself.
-
resourceName
Get the resourceName property: The name of the resource.- Returns:
- the resourceName value.
-
withResourceName
Set the resourceName property: The name of the resource.- Parameters:
resourceName- the resourceName value to set.- Returns:
- the TargetResource object itself.
-
resourceType
Get the resourceType property: The type of the resource.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: The type of the resource.- Parameters:
resourceType- the resourceType value to set.- Returns:
- the TargetResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-