com.microsoft.rest.ServiceCall

Here are the examples of the java api class com.microsoft.rest.ServiceCall taken from open source projects.

1. ProvidersInner#getPublishingUserAsync()

Project: azure-sdk-for-java
File: ProvidersInner.java
/**
     * Gets publishing user.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getPublishingUserAsync(final ServiceCallback<UserInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getPublishingUser(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<UserInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getPublishingUserDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

2. ProvidersInner#getSourceControlsAsync()

Project: azure-sdk-for-java
File: ProvidersInner.java
/**
     * Gets the source controls available for Azure websites.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSourceControlsAsync(final ServiceCallback<SourceControlCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSourceControls(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<SourceControlCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSourceControlsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

3. UsagesInner#getUsageAsync()

Project: azure-sdk-for-java
File: UsagesInner.java
/**
     * Returns usage records for specified subscription and resource groups.
     *
     * @param resourceGroupName Name of resource group
     * @param environmentName Environment name
     * @param lastId Last marker that was returned from the batch
     * @param batchSize size of the batch to be returned.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getUsageAsync(String resourceGroupName, String environmentName, String lastId, int batchSize, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (environmentName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter environmentName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (lastId == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter lastId is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getUsage(resourceGroupName, environmentName, this.client.subscriptionId(), lastId, batchSize, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getUsageDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

4. TopLevelDomainsInner#listTopLevelDomainAgreementsAsync()

Project: azure-sdk-for-java
File: TopLevelDomainsInner.java
/**
     * Lists legal agreements that user needs to accept before purchasing domain.
     *
     * @param name Name of the top level domain
     * @param includePrivacy If true then the list of agreements will inclue agreements for domain privacy as well.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listTopLevelDomainAgreementsAsync(String name, Boolean includePrivacy, final ServiceCallback<TldLegalAgreementCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    TopLevelDomainAgreementOption agreementOption = new TopLevelDomainAgreementOption();
    agreementOption.withIncludePrivacy(includePrivacy);
    Call<ResponseBody> call = service.listTopLevelDomainAgreements(name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), agreementOption, this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<TldLegalAgreementCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listTopLevelDomainAgreementsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

5. TopLevelDomainsInner#listTopLevelDomainAgreementsAsync()

Project: azure-sdk-for-java
File: TopLevelDomainsInner.java
/**
     * Lists legal agreements that user needs to accept before purchasing domain.
     *
     * @param name Name of the top level domain
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listTopLevelDomainAgreementsAsync(String name, final ServiceCallback<TldLegalAgreementCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    final Boolean includePrivacy = null;
    TopLevelDomainAgreementOption agreementOption = new TopLevelDomainAgreementOption();
    agreementOption.withIncludePrivacy(null);
    Call<ResponseBody> call = service.listTopLevelDomainAgreements(name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), agreementOption, this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<TldLegalAgreementCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listTopLevelDomainAgreementsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

6. TopLevelDomainsInner#getTopLevelDomainAsync()

Project: azure-sdk-for-java
File: TopLevelDomainsInner.java
/**
     * Gets details of a top level domain.
     *
     * @param name Name of the top level domain
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getTopLevelDomainAsync(String name, final ServiceCallback<TopLevelDomainInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getTopLevelDomain(name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<TopLevelDomainInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getTopLevelDomainDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

7. TopLevelDomainsInner#getGetTopLevelDomainsAsync()

Project: azure-sdk-for-java
File: TopLevelDomainsInner.java
/**
     * Lists all top level domains supported for registration.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getGetTopLevelDomainsAsync(final ServiceCallback<TopLevelDomainCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getGetTopLevelDomains(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<TopLevelDomainCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getGetTopLevelDomainsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

8. SitesInner#getSiteVNETConnectionsSlotAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Retrieves a list of all Virtual Network Connections associated with this web app.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param slot The name of the slot for this web app.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSiteVNETConnectionsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback<List<VnetInfoInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (slot == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter slot is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSiteVNETConnectionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<VnetInfoInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSiteVNETConnectionsSlotDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

9. SitesInner#getSiteVNETConnectionsAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Retrieves a list of all Virtual Network Connections associated with this web app.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSiteVNETConnectionsAsync(String resourceGroupName, String name, final ServiceCallback<List<VnetInfoInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSiteVNETConnections(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<VnetInfoInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSiteVNETConnectionsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

10. SitesInner#updateSiteVNETConnectionGatewayAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Updates the Virtual Network Gateway.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param vnetName The name of the Virtual Network
     * @param gatewayName The name of the gateway. The only gateway that exists presently is "primary"
     * @param connectionEnvelope The properties to update this gateway with.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateSiteVNETConnectionGatewayAsync(String resourceGroupName, String name, String vnetName, String gatewayName, VnetGatewayInner connectionEnvelope, final ServiceCallback<VnetGatewayInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (vnetName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter vnetName is required and cannot be null."));
        return null;
    }
    if (gatewayName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter gatewayName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (connectionEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(connectionEnvelope, serviceCallback);
    Call<ResponseBody> call = service.updateSiteVNETConnectionGateway(resourceGroupName, name, vnetName, gatewayName, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<VnetGatewayInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateSiteVNETConnectionGatewayDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

11. SitesInner#createOrUpdateSiteVNETConnectionGatewayAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Updates the Virtual Network Gateway.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param vnetName The name of the Virtual Network
     * @param gatewayName The name of the gateway. The only gateway that exists presently is "primary"
     * @param connectionEnvelope The properties to update this gateway with.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateSiteVNETConnectionGatewayAsync(String resourceGroupName, String name, String vnetName, String gatewayName, VnetGatewayInner connectionEnvelope, final ServiceCallback<VnetGatewayInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (vnetName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter vnetName is required and cannot be null."));
        return null;
    }
    if (gatewayName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter gatewayName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (connectionEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(connectionEnvelope, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateSiteVNETConnectionGateway(resourceGroupName, name, vnetName, gatewayName, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<VnetGatewayInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateSiteVNETConnectionGatewayDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

12. SitesInner#getSiteVnetGatewayAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Retrieves a Virtual Network connection gateway associated with this web app and virtual network.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param vnetName The name of the Virtual Network
     * @param gatewayName The name of the gateway. The only gateway that exists presently is "primary"
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSiteVnetGatewayAsync(String resourceGroupName, String name, String vnetName, String gatewayName, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (vnetName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter vnetName is required and cannot be null."));
        return null;
    }
    if (gatewayName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter gatewayName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSiteVnetGateway(resourceGroupName, name, vnetName, gatewayName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSiteVnetGatewayDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

13. SitesInner#updateSiteVNETConnectionGatewaySlotAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Updates the Virtual Network Gateway.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param vnetName The name of the Virtual Network
     * @param gatewayName The name of the gateway. The only gateway that exists presently is "primary"
     * @param slot The name of the slot for this web app.
     * @param connectionEnvelope The properties to update this gateway with.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateSiteVNETConnectionGatewaySlotAsync(String resourceGroupName, String name, String vnetName, String gatewayName, String slot, VnetGatewayInner connectionEnvelope, final ServiceCallback<VnetGatewayInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (vnetName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter vnetName is required and cannot be null."));
        return null;
    }
    if (gatewayName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter gatewayName is required and cannot be null."));
        return null;
    }
    if (slot == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter slot is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (connectionEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(connectionEnvelope, serviceCallback);
    Call<ResponseBody> call = service.updateSiteVNETConnectionGatewaySlot(resourceGroupName, name, vnetName, gatewayName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<VnetGatewayInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateSiteVNETConnectionGatewaySlotDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

14. SitesInner#createOrUpdateSiteVNETConnectionGatewaySlotAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Updates the Virtual Network Gateway.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param vnetName The name of the Virtual Network
     * @param gatewayName The name of the gateway. The only gateway that exists presently is "primary"
     * @param slot The name of the slot for this web app.
     * @param connectionEnvelope The properties to update this gateway with.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateSiteVNETConnectionGatewaySlotAsync(String resourceGroupName, String name, String vnetName, String gatewayName, String slot, VnetGatewayInner connectionEnvelope, final ServiceCallback<VnetGatewayInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (vnetName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter vnetName is required and cannot be null."));
        return null;
    }
    if (gatewayName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter gatewayName is required and cannot be null."));
        return null;
    }
    if (slot == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter slot is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (connectionEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(connectionEnvelope, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateSiteVNETConnectionGatewaySlot(resourceGroupName, name, vnetName, gatewayName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<VnetGatewayInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateSiteVNETConnectionGatewaySlotDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

15. SitesInner#getSiteVnetGatewaySlotAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Retrieves a Virtual Network connection gateway associated with this web app and virtual network.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param vnetName The name of the Virtual Network
     * @param gatewayName The name of the gateway. The only gateway that exists presently is "primary"
     * @param slot The name of the slot for this web app.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSiteVnetGatewaySlotAsync(String resourceGroupName, String name, String vnetName, String gatewayName, String slot, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (vnetName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter vnetName is required and cannot be null."));
        return null;
    }
    if (gatewayName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter gatewayName is required and cannot be null."));
        return null;
    }
    if (slot == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter slot is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSiteVnetGatewaySlot(resourceGroupName, name, vnetName, gatewayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSiteVnetGatewaySlotDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

16. SitesInner#listSiteRelayServiceConnectionsAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Retrieves all Biztalk Hybrid Connections associated with this web app.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listSiteRelayServiceConnectionsAsync(String resourceGroupName, String name, final ServiceCallback<RelayServiceConnectionEntityInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.listSiteRelayServiceConnections(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<RelayServiceConnectionEntityInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listSiteRelayServiceConnectionsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

17. SitesInner#listSiteRelayServiceConnectionsSlotAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Retrieves all Biztalk Hybrid Connections associated with this web app.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param slot The name of the slot for the web app.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listSiteRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback<RelayServiceConnectionEntityInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (slot == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter slot is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.listSiteRelayServiceConnectionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<RelayServiceConnectionEntityInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listSiteRelayServiceConnectionsSlotDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

18. SitesInner#updateSiteRelayServiceConnectionSlotAsync()

Project: azure-sdk-for-java
File: SitesInner.java
/**
     * Creates a new association to a Biztalk Hybrid Connection, or updates an existing one.
     *
     * @param resourceGroupName The resource group name
     * @param name The name of the web app
     * @param entityName The name by which the Hybrid Connection is identified
     * @param slot The name of the slot for the web app.
     * @param connectionEnvelope The details of the Hybrid Connection
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateSiteRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope, final ServiceCallback<RelayServiceConnectionEntityInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (entityName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter entityName is required and cannot be null."));
        return null;
    }
    if (slot == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter slot is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (connectionEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(connectionEnvelope, serviceCallback);
    Call<ResponseBody> call = service.updateSiteRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<RelayServiceConnectionEntityInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateSiteRelayServiceConnectionSlotDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

19. HostingEnvironmentsInner#getHostingEnvironmentCapacitiesAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Get used, available, and total worker capacity for hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getHostingEnvironmentCapacitiesAsync(String resourceGroupName, String name, final ServiceCallback<StampCapacityCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getHostingEnvironmentCapacities(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<StampCapacityCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getHostingEnvironmentCapacitiesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

20. HostingEnvironmentsInner#getHostingEnvironmentDiagnosticsItemAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Get diagnostic information for hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param diagnosticsName Name of the diagnostics
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getHostingEnvironmentDiagnosticsItemAsync(String resourceGroupName, String name, String diagnosticsName, final ServiceCallback<HostingEnvironmentDiagnosticsInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (diagnosticsName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter diagnosticsName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getHostingEnvironmentDiagnosticsItem(resourceGroupName, name, diagnosticsName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<HostingEnvironmentDiagnosticsInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getHostingEnvironmentDiagnosticsItemDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

21. HostingEnvironmentsInner#getHostingEnvironmentDiagnosticsAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Get diagnostic information for hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getHostingEnvironmentDiagnosticsAsync(String resourceGroupName, String name, final ServiceCallback<List<HostingEnvironmentDiagnosticsInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getHostingEnvironmentDiagnostics(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<HostingEnvironmentDiagnosticsInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getHostingEnvironmentDiagnosticsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

22. HostingEnvironmentsInner#beginDeleteHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Delete a hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param forceDelete Delete even if the hostingEnvironment (App Service Environment) contains resources
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall beginDeleteHostingEnvironmentAsync(String resourceGroupName, String name, Boolean forceDelete, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.beginDeleteHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), forceDelete, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(beginDeleteHostingEnvironmentDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

23. HostingEnvironmentsInner#beginDeleteHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Delete a hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall beginDeleteHostingEnvironmentAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    final Boolean forceDelete = null;
    Call<ResponseBody> call = service.beginDeleteHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), forceDelete, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(beginDeleteHostingEnvironmentDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

24. HostingEnvironmentsInner#deleteHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Delete a hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param forceDelete Delete even if the hostingEnvironment (App Service Environment) contains resources
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link ServiceCall} object
     */
public ServiceCall deleteHostingEnvironmentAsync(String resourceGroupName, String name, Boolean forceDelete, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
    }
    Call<ResponseBody> call = service.deleteHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), forceDelete, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new Callback<ResponseBody>() {

        @Override
        public void onFailure(Call<ResponseBody> call, Throwable t) {
            serviceCallback.failure(t);
        }

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            client.getAzureClient().getPostOrDeleteResultAsync(response, new TypeToken<Object>() {
            }.getType(), serviceCall, serviceCallback);
        }
    });
    return serviceCall;
}

25. HostingEnvironmentsInner#deleteHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Delete a hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link ServiceCall} object
     */
public ServiceCall deleteHostingEnvironmentAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
    }
    final Boolean forceDelete = null;
    Call<ResponseBody> call = service.deleteHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), forceDelete, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new Callback<ResponseBody>() {

        @Override
        public void onFailure(Call<ResponseBody> call, Throwable t) {
            serviceCallback.failure(t);
        }

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            client.getAzureClient().getPostOrDeleteResultAsync(response, new TypeToken<Object>() {
            }.getType(), serviceCall, serviceCallback);
        }
    });
    return serviceCall;
}

26. HostingEnvironmentsInner#beginCreateOrUpdateHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Create or update a hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param hostingEnvironmentEnvelope Properties of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall beginCreateOrUpdateHostingEnvironmentAsync(String resourceGroupName, String name, HostingEnvironmentInner hostingEnvironmentEnvelope, final ServiceCallback<HostingEnvironmentInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (hostingEnvironmentEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter hostingEnvironmentEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(hostingEnvironmentEnvelope, serviceCallback);
    Call<ResponseBody> call = service.beginCreateOrUpdateHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), hostingEnvironmentEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<HostingEnvironmentInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(beginCreateOrUpdateHostingEnvironmentDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

27. HostingEnvironmentsInner#createOrUpdateHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Create or update a hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param hostingEnvironmentEnvelope Properties of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link ServiceCall} object
     */
public ServiceCall createOrUpdateHostingEnvironmentAsync(String resourceGroupName, String name, HostingEnvironmentInner hostingEnvironmentEnvelope, final ServiceCallback<HostingEnvironmentInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
    }
    if (hostingEnvironmentEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter hostingEnvironmentEnvelope is required and cannot be null."));
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
    }
    Validator.validate(hostingEnvironmentEnvelope, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), hostingEnvironmentEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new Callback<ResponseBody>() {

        @Override
        public void onFailure(Call<ResponseBody> call, Throwable t) {
            serviceCallback.failure(t);
        }

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken<HostingEnvironmentInner>() {
            }.getType(), serviceCall, serviceCallback);
        }
    });
    return serviceCall;
}

28. HostingEnvironmentsInner#getHostingEnvironmentAsync()

Project: azure-sdk-for-java
File: HostingEnvironmentsInner.java
/**
     * Get properties of hostingEnvironment (App Service Environment).
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of hostingEnvironment (App Service Environment)
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getHostingEnvironmentAsync(String resourceGroupName, String name, final ServiceCallback<HostingEnvironmentInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getHostingEnvironment(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<HostingEnvironmentInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getHostingEnvironmentDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

29. GlobalsInner#checkNameAvailabilityAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Check if resource name is available.
     *
     * @param request Name availability request
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall checkNameAvailabilityAsync(ResourceNameAvailabilityRequestInner request, final ServiceCallback<ResourceNameAvailabilityInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (request == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter request is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(request, serviceCallback);
    Call<ResponseBody> call = service.checkNameAvailability(this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ResourceNameAvailabilityInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(checkNameAvailabilityDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

30. GlobalsInner#isHostingEnvironmentWithLegacyNameAvailableAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Whether hosting environment name is available.
     *
     * @param name Hosting environment name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall isHostingEnvironmentWithLegacyNameAvailableAsync(String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.isHostingEnvironmentWithLegacyNameAvailable(name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(isHostingEnvironmentWithLegacyNameAvailableDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

31. GlobalsInner#isHostingEnvironmentNameAvailableAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Whether hosting environment name is available.
     *
     * @param name Hosting environment name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall isHostingEnvironmentNameAvailableAsync(String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.isHostingEnvironmentNameAvailable(this.client.subscriptionId(), name, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(isHostingEnvironmentNameAvailableDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

32. GlobalsInner#listPremierAddOnOffersAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * List premier add on offers.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listPremierAddOnOffersAsync(final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.listPremierAddOnOffers(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listPremierAddOnOffersDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

33. GlobalsInner#getAllClassicMobileServicesAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets all mobile services for a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllClassicMobileServicesAsync(final ServiceCallback<ClassicMobileServiceCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllClassicMobileServices(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ClassicMobileServiceCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllClassicMobileServicesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

34. GlobalsInner#getAllManagedHostingEnvironmentsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets all managed hosting environments for a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllManagedHostingEnvironmentsAsync(final ServiceCallback<ManagedHostingEnvironmentCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllManagedHostingEnvironments(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ManagedHostingEnvironmentCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllManagedHostingEnvironmentsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

35. GlobalsInner#getAllHostingEnvironmentsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets all hostingEnvironments (App Service Environment) for a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllHostingEnvironmentsAsync(final ServiceCallback<HostingEnvironmentCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllHostingEnvironments(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<HostingEnvironmentCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllHostingEnvironmentsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

36. GlobalsInner#getAllSitesAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets all Web Apps for a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllSitesAsync(final ServiceCallback<SiteCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllSites(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<SiteCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllSitesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

37. GlobalsInner#getAllServerFarmsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets all App Service Plans for a subcription.
     *
     * @param detailed False to return a subset of App Service Plan properties, true to return all of the properties.
                 Retrieval of all properties may increase the API latency.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllServerFarmsAsync(Boolean detailed, final ServiceCallback<ServerFarmCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllServerFarms(this.client.subscriptionId(), detailed, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ServerFarmCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllServerFarmsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

38. GlobalsInner#getAllServerFarmsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets all App Service Plans for a subcription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllServerFarmsAsync(final ServiceCallback<ServerFarmCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    final Boolean detailed = null;
    Call<ResponseBody> call = service.getAllServerFarms(this.client.subscriptionId(), detailed, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ServerFarmCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllServerFarmsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

39. GlobalsInner#getAllCertificatesAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Get all certificates for a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllCertificatesAsync(final ServiceCallback<CertificateCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllCertificates(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllCertificatesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

40. GlobalsInner#getSubscriptionGeoRegionsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets list of available geo regions.
     *
     * @param sku Filter only to regions that support this sku
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSubscriptionGeoRegionsAsync(String sku, final ServiceCallback<GeoRegionCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSubscriptionGeoRegions(this.client.subscriptionId(), sku, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<GeoRegionCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSubscriptionGeoRegionsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

41. GlobalsInner#getSubscriptionGeoRegionsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets list of available geo regions.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSubscriptionGeoRegionsAsync(final ServiceCallback<GeoRegionCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    final String sku = null;
    Call<ResponseBody> call = service.getSubscriptionGeoRegions(this.client.subscriptionId(), sku, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<GeoRegionCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSubscriptionGeoRegionsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

42. GlobalsInner#updateSubscriptionPublishingCredentialsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Updates publishing credentials for the subscription owner.
     *
     * @param requestMessage requestMessage with new publishing credentials
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateSubscriptionPublishingCredentialsAsync(UserInner requestMessage, final ServiceCallback<UserInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (requestMessage == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter requestMessage is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(requestMessage, serviceCallback);
    Call<ResponseBody> call = service.updateSubscriptionPublishingCredentials(this.client.subscriptionId(), requestMessage, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<UserInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateSubscriptionPublishingCredentialsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

43. GlobalsInner#getSubscriptionPublishingCredentialsAsync()

Project: azure-sdk-for-java
File: GlobalsInner.java
/**
     * Gets publishing credentials for the subscription owner.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getSubscriptionPublishingCredentialsAsync(final ServiceCallback<UserInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getSubscriptionPublishingCredentials(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<UserInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getSubscriptionPublishingCredentialsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

44. GlobalResourceGroupsInner#moveResourcesAsync()

Project: azure-sdk-for-java
File: GlobalResourceGroupsInner.java
/**
     *
     * @param resourceGroupName the String value
     * @param moveResourceEnvelope the CsmMoveResourceEnvelopeInner value
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall moveResourcesAsync(String resourceGroupName, CsmMoveResourceEnvelopeInner moveResourceEnvelope, final ServiceCallback<Void> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (moveResourceEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter moveResourceEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(moveResourceEnvelope, serviceCallback);
    Call<ResponseBody> call = service.moveResources(resourceGroupName, this.client.subscriptionId(), moveResourceEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Void>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(moveResourcesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

45. GlobalDomainRegistrationsInner#listDomainRecommendationsAsync()

Project: azure-sdk-for-java
File: GlobalDomainRegistrationsInner.java
/**
     * Lists domain recommendations based on keywords.
     *
     * @param parameters Domain recommendation search parameters
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listDomainRecommendationsAsync(DomainRecommendationSearchParametersInner parameters, final ServiceCallback<NameIdentifierCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (parameters == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(parameters, serviceCallback);
    Call<ResponseBody> call = service.listDomainRecommendations(this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<NameIdentifierCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listDomainRecommendationsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

46. GlobalDomainRegistrationsInner#checkDomainAvailabilityAsync()

Project: azure-sdk-for-java
File: GlobalDomainRegistrationsInner.java
/**
     * Checks if a domain is available for registration.
     *
     * @param name Name of the object
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall checkDomainAvailabilityAsync(String name, final ServiceCallback<DomainAvailablilityCheckResultInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    NameIdentifier identifier = new NameIdentifier();
    identifier.withName(name);
    Call<ResponseBody> call = service.checkDomainAvailability(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), identifier, this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainAvailablilityCheckResultInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(checkDomainAvailabilityDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

47. GlobalDomainRegistrationsInner#checkDomainAvailabilityAsync()

Project: azure-sdk-for-java
File: GlobalDomainRegistrationsInner.java
/**
     * Checks if a domain is available for registration.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall checkDomainAvailabilityAsync(final ServiceCallback<DomainAvailablilityCheckResultInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    final String name = null;
    NameIdentifier identifier = new NameIdentifier();
    identifier.withName(null);
    Call<ResponseBody> call = service.checkDomainAvailability(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), identifier, this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainAvailablilityCheckResultInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(checkDomainAvailabilityDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

48. GlobalDomainRegistrationsInner#validateDomainPurchaseInformationAsync()

Project: azure-sdk-for-java
File: GlobalDomainRegistrationsInner.java
/**
     * Validates domain registration information.
     *
     * @param domainRegistrationInput Domain registration information
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall validateDomainPurchaseInformationAsync(DomainRegistrationInputInner domainRegistrationInput, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (domainRegistrationInput == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainRegistrationInput is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(domainRegistrationInput, serviceCallback);
    Call<ResponseBody> call = service.validateDomainPurchaseInformation(this.client.subscriptionId(), domainRegistrationInput, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(validateDomainPurchaseInformationDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

49. GlobalDomainRegistrationsInner#getDomainControlCenterSsoRequestAsync()

Project: azure-sdk-for-java
File: GlobalDomainRegistrationsInner.java
/**
     * Generates a single sign on request for domain management portal.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getDomainControlCenterSsoRequestAsync(final ServiceCallback<DomainControlCenterSsoRequestInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getDomainControlCenterSsoRequest(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainControlCenterSsoRequestInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getDomainControlCenterSsoRequestDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

50. GlobalDomainRegistrationsInner#getAllDomainsAsync()

Project: azure-sdk-for-java
File: GlobalDomainRegistrationsInner.java
/**
     * Lists all domains in a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllDomainsAsync(final ServiceCallback<DomainCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllDomains(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllDomainsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

51. GlobalCertificateOrdersInner#validateCertificatePurchaseInformationAsync()

Project: azure-sdk-for-java
File: GlobalCertificateOrdersInner.java
/**
     * Validate certificate purchase information.
     *
     * @param certificateOrder Certificate order
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall validateCertificatePurchaseInformationAsync(CertificateOrderInner certificateOrder, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (certificateOrder == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateOrder is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(certificateOrder, serviceCallback);
    Call<ResponseBody> call = service.validateCertificatePurchaseInformation(this.client.subscriptionId(), certificateOrder, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(validateCertificatePurchaseInformationDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

52. GlobalCertificateOrdersInner#getAllCertificateOrdersAsync()

Project: azure-sdk-for-java
File: GlobalCertificateOrdersInner.java
/**
     * Lists all domains in a subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getAllCertificateOrdersAsync(final ServiceCallback<CertificateOrderCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getAllCertificateOrders(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getAllCertificateOrdersDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

53. DomainsInner#getDomainOperationAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Retrieves the latest status of a domain purchase operation.
     *
     * @param resourceGroupName Name of the resource group
     * @param domainName Name of the domain
     * @param operationId Domain purchase operation Id
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getDomainOperationAsync(String resourceGroupName, String domainName, String operationId, final ServiceCallback<DomainInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (domainName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
        return null;
    }
    if (operationId == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getDomainOperation(resourceGroupName, domainName, operationId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getDomainOperationDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

54. DomainsInner#updateDomainAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Creates a domain.
     *
     * @param resourceGroupName &gt;Name of the resource group
     * @param domainName Name of the domain
     * @param domain Domain registration information
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateDomainAsync(String resourceGroupName, String domainName, DomainInner domain, final ServiceCallback<DomainInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (domainName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (domain == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domain is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(domain, serviceCallback);
    Call<ResponseBody> call = service.updateDomain(resourceGroupName, domainName, this.client.subscriptionId(), domain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateDomainDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

55. DomainsInner#deleteDomainAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Deletes a domain.
     *
     * @param resourceGroupName Name of the resource group
     * @param domainName Name of the domain
     * @param forceHardDeleteDomain If true then the domain will be deleted immediately instead of after 24 hours
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteDomainAsync(String resourceGroupName, String domainName, Boolean forceHardDeleteDomain, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (domainName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.deleteDomain(resourceGroupName, domainName, this.client.subscriptionId(), forceHardDeleteDomain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteDomainDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

56. DomainsInner#deleteDomainAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Deletes a domain.
     *
     * @param resourceGroupName Name of the resource group
     * @param domainName Name of the domain
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteDomainAsync(String resourceGroupName, String domainName, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (domainName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    final Boolean forceHardDeleteDomain = null;
    Call<ResponseBody> call = service.deleteDomain(resourceGroupName, domainName, this.client.subscriptionId(), forceHardDeleteDomain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteDomainDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

57. DomainsInner#createOrUpdateDomainAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Creates a domain.
     *
     * @param resourceGroupName &gt;Name of the resource group
     * @param domainName Name of the domain
     * @param domain Domain registration information
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateDomainAsync(String resourceGroupName, String domainName, DomainInner domain, final ServiceCallback<DomainInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (domainName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (domain == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domain is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(domain, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateDomain(resourceGroupName, domainName, this.client.subscriptionId(), domain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateDomainDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

58. DomainsInner#getDomainAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Gets details of a domain.
     *
     * @param resourceGroupName Name of the resource group
     * @param domainName Name of the domain
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getDomainAsync(String resourceGroupName, String domainName, final ServiceCallback<DomainInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (domainName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getDomain(resourceGroupName, domainName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getDomainDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

59. DomainsInner#getDomainsAsync()

Project: azure-sdk-for-java
File: DomainsInner.java
/**
     * Lists domains under a resource group.
     *
     * @param resourceGroupName Name of the resource group
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getDomainsAsync(String resourceGroupName, final ServiceCallback<DomainCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getDomains(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<DomainCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getDomainsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

60. ClassicMobileServicesInner#deleteClassicMobileServiceAsync()

Project: azure-sdk-for-java
File: ClassicMobileServicesInner.java
/**
     * Delete a mobile service.
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of mobile service
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteClassicMobileServiceAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.deleteClassicMobileService(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteClassicMobileServiceDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

61. ClassicMobileServicesInner#getClassicMobileServiceAsync()

Project: azure-sdk-for-java
File: ClassicMobileServicesInner.java
/**
     * Get a mobile service.
     *
     * @param resourceGroupName Name of resource group
     * @param name Name of mobile service
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getClassicMobileServiceAsync(String resourceGroupName, String name, final ServiceCallback<ClassicMobileServiceInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getClassicMobileService(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ClassicMobileServiceInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getClassicMobileServiceDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

62. ClassicMobileServicesInner#getClassicMobileServicesAsync()

Project: azure-sdk-for-java
File: ClassicMobileServicesInner.java
/**
     * Get all mobile services in a resource group.
     *
     * @param resourceGroupName Name of resource group
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getClassicMobileServicesAsync(String resourceGroupName, final ServiceCallback<ClassicMobileServiceCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getClassicMobileServices(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<ClassicMobileServiceCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getClassicMobileServicesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

63. CertificatesInner#updateCsrAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Creates or modifies an existing certificate signing request.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate.
     * @param csrEnvelope Details of certificate signing request if it exists already.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateCsrAsync(String resourceGroupName, String name, CsrInner csrEnvelope, final ServiceCallback<CsrInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (csrEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter csrEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(csrEnvelope, serviceCallback);
    Call<ResponseBody> call = service.updateCsr(resourceGroupName, name, this.client.subscriptionId(), csrEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CsrInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateCsrDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

64. CertificatesInner#deleteCsrAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Delete the certificate signing request.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate signing request.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteCsrAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.deleteCsr(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteCsrDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

65. CertificatesInner#createOrUpdateCsrAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Creates or modifies an existing certificate signing request.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate.
     * @param csrEnvelope Details of certificate signing request if it exists already.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateCsrAsync(String resourceGroupName, String name, CsrInner csrEnvelope, final ServiceCallback<CsrInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (csrEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter csrEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(csrEnvelope, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateCsr(resourceGroupName, name, this.client.subscriptionId(), csrEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CsrInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateCsrDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

66. CertificatesInner#getCsrAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Gets a certificate signing request by certificate name for a subscription in the specified resource group.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCsrAsync(String resourceGroupName, String name, final ServiceCallback<CsrInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCsr(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CsrInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCsrDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

67. CertificatesInner#getCsrsAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Gets the certificate signing requests for a subscription in the specified resource group.
     *
     * @param resourceGroupName Name of the resource group
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCsrsAsync(String resourceGroupName, final ServiceCallback<List<CsrInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCsrs(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<CsrInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCsrsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

68. CertificatesInner#updateCertificateAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Creates or modifies an existing certificate.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate.
     * @param certificateEnvelope Details of certificate if it exists already.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateCertificateAsync(String resourceGroupName, String name, CertificateInner certificateEnvelope, final ServiceCallback<CertificateInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (certificateEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(certificateEnvelope, serviceCallback);
    Call<ResponseBody> call = service.updateCertificate(resourceGroupName, name, this.client.subscriptionId(), certificateEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

69. CertificatesInner#deleteCertificateAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Delete a certificate by name in a specificed subscription and resourcegroup.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate to be deleted.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteCertificateAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.deleteCertificate(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

70. CertificatesInner#createOrUpdateCertificateAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Creates or modifies an existing certificate.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate.
     * @param certificateEnvelope Details of certificate if it exists already.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateCertificateAsync(String resourceGroupName, String name, CertificateInner certificateEnvelope, final ServiceCallback<CertificateInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (certificateEnvelope == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateEnvelope is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(certificateEnvelope, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateCertificate(resourceGroupName, name, this.client.subscriptionId(), certificateEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

71. CertificatesInner#getCertificateAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Get a certificate by certificate name for a subscription in the specified resource group.
     *
     * @param resourceGroupName Name of the resource group
     * @param name Name of the certificate.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCertificateAsync(String resourceGroupName, String name, final ServiceCallback<CertificateInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCertificate(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

72. CertificatesInner#getCertificatesAsync()

Project: azure-sdk-for-java
File: CertificatesInner.java
/**
     * Get certificates for a subscription in the specified resource group.
     *
     * @param resourceGroupName Name of the resource group
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCertificatesAsync(String resourceGroupName, final ServiceCallback<CertificateCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCertificates(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCertificatesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

73. CertificateOrdersInner#verifyDomainOwnershipAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Verify domain ownership for this certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate order name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall verifyDomainOwnershipAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.verifyDomainOwnership(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(verifyDomainOwnershipDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

74. CertificateOrdersInner#resendCertificateEmailAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Resend certificate email.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate order name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall resendCertificateEmailAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.resendCertificateEmail(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(resendCertificateEmailDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

75. CertificateOrdersInner#retrieveCertificateEmailHistoryAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Retrive email history.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate order name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall retrieveCertificateEmailHistoryAsync(String resourceGroupName, String name, final ServiceCallback<List<CertificateEmailInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.retrieveCertificateEmailHistory(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<CertificateEmailInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(retrieveCertificateEmailHistoryDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

76. CertificateOrdersInner#retrieveCertificateActionsAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Retrieve the list of certificate actions.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate order name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall retrieveCertificateActionsAsync(String resourceGroupName, String name, final ServiceCallback<List<CertificateOrderActionInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.retrieveCertificateActions(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<CertificateOrderActionInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(retrieveCertificateActionsDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

77. CertificateOrdersInner#renewCertificateOrderAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Renew an existing certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate name
     * @param renewCertificateOrderRequest Renew parameters
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall renewCertificateOrderAsync(String resourceGroupName, String name, RenewCertificateOrderRequestInner renewCertificateOrderRequest, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (renewCertificateOrderRequest == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter renewCertificateOrderRequest is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(renewCertificateOrderRequest, serviceCallback);
    Call<ResponseBody> call = service.renewCertificateOrder(resourceGroupName, name, this.client.subscriptionId(), renewCertificateOrderRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(renewCertificateOrderDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

78. CertificateOrdersInner#reissueCertificateOrderAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Reissue an existing certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate name
     * @param reissueCertificateOrderRequest Reissue parameters
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall reissueCertificateOrderAsync(String resourceGroupName, String name, ReissueCertificateOrderRequestInner reissueCertificateOrderRequest, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (reissueCertificateOrderRequest == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter reissueCertificateOrderRequest is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(reissueCertificateOrderRequest, serviceCallback);
    Call<ResponseBody> call = service.reissueCertificateOrder(resourceGroupName, name, this.client.subscriptionId(), reissueCertificateOrderRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(reissueCertificateOrderDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

79. CertificateOrdersInner#getCertificatesAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * List all certificates associated with a certificate order (only one certificate can be associated with an order at a time).
     *
     * @param resourceGroupName Azure resource group name
     * @param certificateOrderName Certificate name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCertificatesAsync(String resourceGroupName, String certificateOrderName, final ServiceCallback<CertificateOrderCertificateCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (certificateOrderName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateOrderName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCertificates(resourceGroupName, certificateOrderName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderCertificateCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCertificatesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

80. CertificateOrdersInner#getCertificateOrdersAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Get certificate orders in a resource group.
     *
     * @param resourceGroupName Azure resource group name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCertificateOrdersAsync(String resourceGroupName, final ServiceCallback<CertificateOrderCollectionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCertificateOrders(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderCollectionInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCertificateOrdersDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

81. CertificateOrdersInner#updateCertificateOrderAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Create or update a certificate purchase order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate name
     * @param certificateDistinguishedName Distinguished name to be used for purchasing certificate
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateCertificateOrderAsync(String resourceGroupName, String name, CertificateOrderInner certificateDistinguishedName, final ServiceCallback<CertificateOrderInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (certificateDistinguishedName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateDistinguishedName is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(certificateDistinguishedName, serviceCallback);
    Call<ResponseBody> call = service.updateCertificateOrder(resourceGroupName, name, this.client.subscriptionId(), certificateDistinguishedName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateCertificateOrderDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

82. CertificateOrdersInner#deleteCertificateOrderAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Delete an existing certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteCertificateOrderAsync(String resourceGroupName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.deleteCertificateOrder(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteCertificateOrderDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

83. CertificateOrdersInner#createOrUpdateCertificateOrderAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Create or update a certificate purchase order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate name
     * @param certificateDistinguishedName Distinguished name to be used for purchasing certificate
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateCertificateOrderAsync(String resourceGroupName, String name, CertificateOrderInner certificateDistinguishedName, final ServiceCallback<CertificateOrderInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (certificateDistinguishedName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateDistinguishedName is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(certificateDistinguishedName, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateCertificateOrder(resourceGroupName, name, this.client.subscriptionId(), certificateDistinguishedName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateCertificateOrderDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

84. CertificateOrdersInner#getCertificateOrderAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Get a certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param name Certificate name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCertificateOrderAsync(String resourceGroupName, String name, final ServiceCallback<CertificateOrderInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCertificateOrder(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCertificateOrderDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

85. CertificateOrdersInner#updateCertificateAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it's ready.
     *
     * @param resourceGroupName Azure resource group name
     * @param certificateOrderName Certificate name
     * @param name Certificate name
     * @param keyVaultCertificate Key Vault secret csm Id
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateCertificateAsync(String resourceGroupName, String certificateOrderName, String name, CertificateOrderCertificateInner keyVaultCertificate, final ServiceCallback<CertificateOrderCertificateInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (certificateOrderName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateOrderName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (keyVaultCertificate == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter keyVaultCertificate is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(keyVaultCertificate, serviceCallback);
    Call<ResponseBody> call = service.updateCertificate(resourceGroupName, certificateOrderName, name, this.client.subscriptionId(), keyVaultCertificate, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderCertificateInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

86. CertificateOrdersInner#deleteCertificateAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Deletes the certificate associated with the certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param certificateOrderName Certificate name
     * @param name Certificate name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteCertificateAsync(String resourceGroupName, String certificateOrderName, String name, final ServiceCallback<Object> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (certificateOrderName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateOrderName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.deleteCertificate(resourceGroupName, certificateOrderName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Object>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

87. CertificateOrdersInner#createOrUpdateCertificateAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it's ready.
     *
     * @param resourceGroupName Azure resource group name
     * @param certificateOrderName Certificate name
     * @param name Certificate name
     * @param keyVaultCertificate Key Vault secret csm Id
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall createOrUpdateCertificateAsync(String resourceGroupName, String certificateOrderName, String name, CertificateOrderCertificateInner keyVaultCertificate, final ServiceCallback<CertificateOrderCertificateInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (certificateOrderName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateOrderName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (keyVaultCertificate == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter keyVaultCertificate is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(keyVaultCertificate, serviceCallback);
    Call<ResponseBody> call = service.createOrUpdateCertificate(resourceGroupName, certificateOrderName, name, this.client.subscriptionId(), keyVaultCertificate, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderCertificateInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(createOrUpdateCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

88. CertificateOrdersInner#getCertificateAsync()

Project: azure-sdk-for-java
File: CertificateOrdersInner.java
/**
     * Get certificate associated with the certificate order.
     *
     * @param resourceGroupName Azure resource group name
     * @param certificateOrderName Certificate name
     * @param name Certificate name
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getCertificateAsync(String resourceGroupName, String certificateOrderName, String name, final ServiceCallback<CertificateOrderCertificateInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (certificateOrderName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter certificateOrderName is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getCertificate(resourceGroupName, certificateOrderName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CertificateOrderCertificateInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getCertificateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

89. UsagesInner#listAsync()

Project: azure-sdk-for-java
File: UsagesInner.java
/**
     * Gets the current usage count and the limit for the resources under the subscription.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listAsync(final ServiceCallback<UsageListResultInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<UsageListResultInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

90. StorageAccountsInner#regenerateKeyAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Regenerates the access keys for the specified storage account.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * @param keyName the String value
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall regenerateKeyAsync(String resourceGroupName, String accountName, String keyName, final ServiceCallback<StorageAccountListKeysResultInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    if (keyName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter keyName is required and cannot be null."));
        return null;
    }
    StorageAccountRegenerateKeyParameters regenerateKey = new StorageAccountRegenerateKeyParameters();
    regenerateKey.withKeyName(keyName);
    Call<ResponseBody> call = service.regenerateKey(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), regenerateKey, this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<StorageAccountListKeysResultInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(regenerateKeyDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

91. StorageAccountsInner#listKeysAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Lists the access keys for the specified storage account.
     *
     * @param resourceGroupName The name of the resource group.
     * @param accountName The name of the storage account.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listKeysAsync(String resourceGroupName, String accountName, final ServiceCallback<StorageAccountListKeysResultInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.listKeys(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<StorageAccountListKeysResultInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(listKeysDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

92. StorageAccountsInner#listByResourceGroupAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<List<StorageAccountInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<StorageAccountInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                ServiceResponse<PageImpl<StorageAccountInner>> result = listByResourceGroupDelegate(response);
                serviceCallback.success(new ServiceResponse<>(result.getBody().getItems(), result.getResponse()));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

93. StorageAccountsInner#listAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listAsync(final ServiceCallback<List<StorageAccountInner>> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<StorageAccountInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                ServiceResponse<PageImpl<StorageAccountInner>> result = listDelegate(response);
                serviceCallback.success(new ServiceResponse<>(result.getBody().getItems(), result.getResponse()));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

94. StorageAccountsInner#updateAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * The update operation can be used to update the account type, encryption, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account and. replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value may be set. Update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change storage account keys, use the regenerate keys operation.  The location and name of the storage account cannot be changed after creation.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * @param parameters The parameters to provide for the updated account.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall updateAsync(String resourceGroupName, String accountName, StorageAccountUpdateParametersInner parameters, final ServiceCallback<StorageAccountInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (parameters == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(parameters, serviceCallback);
    Call<ResponseBody> call = service.update(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<StorageAccountInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(updateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

95. StorageAccountsInner#getPropertiesAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall getPropertiesAsync(String resourceGroupName, String accountName, final ServiceCallback<StorageAccountInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.getProperties(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<StorageAccountInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(getPropertiesDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

96. StorageAccountsInner#deleteAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Deletes a storage account in Microsoft Azure.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall deleteAsync(String resourceGroupName, String accountName, final ServiceCallback<Void> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.delete(resourceGroupName, accountName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<Void>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(deleteDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

97. StorageAccountsInner#beginCreateAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Asynchronously creates a new storage account with the specified parameters. If an account is already created and subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and subsequent create or update request is issued with exact same set of properties, the request will succeed.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * @param parameters The parameters to provide for the created account.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall beginCreateAsync(String resourceGroupName, String accountName, StorageAccountCreateParametersInner parameters, final ServiceCallback<StorageAccountInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
        return null;
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
        return null;
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (parameters == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Validator.validate(parameters, serviceCallback);
    Call<ResponseBody> call = service.beginCreate(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<StorageAccountInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(beginCreateDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

98. StorageAccountsInner#createAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Asynchronously creates a new storage account with the specified parameters. If an account is already created and subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and subsequent create or update request is issued with exact same set of properties, the request will succeed.
     *
     * @param resourceGroupName The name of the resource group within the user's subscription.
     * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * @param parameters The parameters to provide for the created account.
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link ServiceCall} object
     */
public ServiceCall createAsync(String resourceGroupName, String accountName, StorageAccountCreateParametersInner parameters, final ServiceCallback<StorageAccountInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (resourceGroupName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
    }
    if (accountName == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
    }
    if (parameters == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
    }
    Validator.validate(parameters, serviceCallback);
    Call<ResponseBody> call = service.create(resourceGroupName, accountName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new Callback<ResponseBody>() {

        @Override
        public void onFailure(Call<ResponseBody> call, Throwable t) {
            serviceCallback.failure(t);
        }

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            client.getAzureClient().getPutOrPatchResultAsync(response, new TypeToken<StorageAccountInner>() {
            }.getType(), serviceCall, serviceCallback);
        }
    });
    return serviceCall;
}

99. StorageAccountsInner#checkNameAvailabilityAsync()

Project: azure-sdk-for-java
File: StorageAccountsInner.java
/**
     * Checks that account name is valid and is not in use.
     *
     * @param name the String value
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall checkNameAvailabilityAsync(String name, final ServiceCallback<CheckNameAvailabilityResultInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.subscriptionId() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."));
        return null;
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    if (name == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter name is required and cannot be null."));
        return null;
    }
    StorageAccountCheckNameAvailabilityParameters accountName = new StorageAccountCheckNameAvailabilityParameters();
    accountName.withName(name);
    Call<ResponseBody> call = service.checkNameAvailability(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), accountName, this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<CheckNameAvailabilityResultInner>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                serviceCallback.success(checkNameAvailabilityDelegate(response));
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}

100. TenantsInner#listAsync()

Project: azure-sdk-for-java
File: TenantsInner.java
/**
     * Gets a list of the tenantIds.
     *
     * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
     * @throws IllegalArgumentException thrown if callback is null
     * @return the {@link Call} object
     */
public ServiceCall listAsync(final ListOperationCallback<TenantIdDescriptionInner> serviceCallback) throws IllegalArgumentException {
    if (serviceCallback == null) {
        throw new IllegalArgumentException("ServiceCallback is required for async calls.");
    }
    if (this.client.apiVersion() == null) {
        serviceCallback.failure(new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."));
        return null;
    }
    Call<ResponseBody> call = service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
    final ServiceCall serviceCall = new ServiceCall(call);
    call.enqueue(new ServiceResponseCallback<List<TenantIdDescriptionInner>>(serviceCallback) {

        @Override
        public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
            try {
                ServiceResponse<PageImpl1<TenantIdDescriptionInner>> result = listDelegate(response);
                serviceCallback.load(result.getBody().getItems());
                if (result.getBody().getNextPageLink() != null && serviceCallback.progress(result.getBody().getItems()) == ListOperationCallback.PagingBahavior.CONTINUE) {
                    listNextAsync(result.getBody().getNextPageLink(), serviceCall, serviceCallback);
                } else {
                    serviceCallback.success(new ServiceResponse<>(serviceCallback.get(), result.getResponse()));
                }
            } catch (CloudExceptionIOException |  exception) {
                serviceCallback.failure(exception);
            }
        }
    });
    return serviceCall;
}