use of com.microsoft.azure.batch.protocol.models.ApplicationGetHeaders in project azure-sdk-for-java by Azure.
the class ApplicationOperations method getApplication.
/**
* Gets information about the specified application.
*
* @param applicationId The ID of the application to get.
* @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
* @return An {@link ApplicationSummary} containing information about the specified application.
* @throws BatchErrorException Exception thrown from REST call
* @throws IOException Exception thrown from serialization/deserialization
*/
public ApplicationSummary getApplication(String applicationId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
ApplicationGetOptions options = new ApplicationGetOptions();
BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors);
bhMgr.applyRequestBehaviors(options);
ServiceResponseWithHeaders<ApplicationSummary, ApplicationGetHeaders> response = this._parentBatchClient.protocolLayer().applications().get(applicationId, options);
return response.getBody();
}
Aggregations