TargetResource Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. TargetResource
- com.
Implements
public final class TargetResource
implements JsonSerializable<TargetResource>
Target resource.
Constructor Summary
Constructor | Description |
---|---|
TargetResource() |
Creates an instance of Target |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Target |
fromJson(JsonReader jsonReader)
Reads an instance of Target |
String |
id()
Get the id property: The ID of the resource. |
String |
resourceName()
Get the resource |
String |
resourceType()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
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
fromJson
public static TargetResource fromJson(JsonReader jsonReader)
Reads an instance of TargetResource from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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