SupportsGettingById<T> Interface

Type Parameters

T

the type of the resource collection

public interface SupportsGettingById

Provides access to getting a specific Azure resource based on its resource ID.

(Note this interface is not intended to be implemented by user code.)

Method Summary

Modifier and Type Method and Description
T getById(String id)

Gets the information about a resource from Azure based on the resource id.

Observable<T> getByIdAsync(String id)

Gets the information about a resource from Azure based on the resource id.

ServiceFuture<T> getByIdAsync(String id, ServiceCallback<T> callback)

Gets the information about a resource from Azure based on the resource id.

Method Details

getById

public T getById(String id)

Gets the information about a resource from Azure based on the resource id.

Parameters:

id - the id of the resource.

Returns:

an immutable representation of the resource

getByIdAsync

public Observable getByIdAsync(String id)

Gets the information about a resource from Azure based on the resource id.

Parameters:

id - the id of the resource.

Returns:

an immutable representation of the resource

getByIdAsync

public ServiceFuture getByIdAsync(String id, ServiceCallback callback)

Gets the information about a resource from Azure based on the resource id.

Parameters:

id - the id of the resource.
callback - the callback to call on success or failure

Returns:

an immutable representation of the resource

Applies to