共用方式為


TargetResource Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.TargetResource

public class TargetResource

Target resource.

Constructor Summary

Constructor Description
TargetResource()

Method Summary

Modifier and Type Method and Description
java.lang.String id()

Get the ID of the resource.

java.lang.String resourceName()

Get the name of the resource.

java.lang.String resourceType()

Get the type of the resource.

TargetResource withId(String id)

Set the ID of the resource.

TargetResource withResourceName(String resourceName)

Set the name of the resource.

TargetResource withResourceType(String resourceType)

Set the type of the resource.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TargetResource

public TargetResource()

Method Details

id

public String id()

Get the ID of the resource.

Returns:

the id value

resourceName

public String resourceName()

Get the name of the resource.

Returns:

the resourceName value

resourceType

public String resourceType()

Get the type of the resource.

Returns:

the resourceType value

withId

public TargetResource withId(String id)

Set the ID of the resource.

Parameters:

id - the id value to set

Returns:

the TargetResource object itself.

withResourceName

public TargetResource withResourceName(String resourceName)

Set the name of the resource.

Parameters:

resourceName - the resourceName value to set

Returns:

the TargetResource object itself.

withResourceType

public TargetResource withResourceType(String resourceType)

Set the type of the resource.

Parameters:

resourceType - the resourceType value to set

Returns:

the TargetResource object itself.

Applies to