TargetResource Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. TargetResource
- com.
public final class TargetResource
Target resource.
Constructor Summary
Constructor | Description |
---|---|
TargetResource() |
Creates an instance of Target |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
id()
Get the id property: The ID of the resource. |
String |
resourceName()
Get the resource |
String |
resourceType()
Get the resource |
void |
validate()
Validates the instance. |
Target |
withId(String id)
Set the id property: The ID of the resource. |
Target |
withResourceName(String resourceName)
Set the resource |
Target |
withResourceType(String resourceType)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
TargetResource
public TargetResource()
Creates an instance of TargetResource class.
Method Details
id
public String id()
Get the id property: The ID of the resource.
Returns:
resourceName
public String resourceName()
Get the resourceName property: The name of the resource.
Returns:
resourceType
public String resourceType()
Get the resourceType property: The type of the resource.
Returns:
validate
public void validate()
Validates the instance.
withId
public TargetResource withId(String id)
Set the id property: The ID of the resource.
Parameters:
Returns:
withResourceName
public TargetResource withResourceName(String resourceName)
Set the resourceName property: The name of the resource.
Parameters:
Returns:
withResourceType
public TargetResource withResourceType(String resourceType)
Set the resourceType property: The type of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for