Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.arm.resources.collection;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.LangDefinition.MethodConversion;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import rx.Observable;
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.)
Type parameters: - <T> – the type of the resource collection
/**
* Provides access to getting a specific Azure resource based on its resource ID.
* <p>
* (Note this interface is not intended to be implemented by user code.)
*
* @param <T> the type of the resource collection
*/
@LangDefinition(ContainerName = "CollectionActions", CreateAsyncMethods = true, MethodConversionType = MethodConversion.OnlyMethod)
public interface SupportsGettingById<T> {
Gets the information about a resource from Azure based on the resource id.
Params: - id – the id of the resource.
Returns: an immutable representation of the resource
/**
* Gets the information about a resource from Azure based on the resource id.
*
* @param id the id of the resource.
* @return an immutable representation of the resource
*/
T getById(String id);
Gets the information about a resource from Azure based on the resource id.
Params: - id – the id of the resource.
Returns: an immutable representation of the resource
/**
* Gets the information about a resource from Azure based on the resource id.
*
* @param id the id of the resource.
* @return an immutable representation of the resource
*/
Observable<T> getByIdAsync(String id);
Gets the information about a resource from Azure based on the resource id.
Params: - id – the id of the resource.
- callback – the callback to call on success or failure
Returns: an immutable representation of the resource
/**
* Gets the information about a resource from Azure based on the resource id.
*
* @param id the id of the resource.
* @param callback the callback to call on success or failure
* @return an immutable representation of the resource
*/
ServiceFuture<T> getByIdAsync(String id, ServiceCallback<T> callback);
}