public ServiceFuture<ConnectionSharedKeyInner> setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters, final ServiceCallback<ConnectionSharedKeyInner> serviceCallback) {
        return ServiceFuture.fromResponse(setSharedKeyWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters), serviceCallback);
    }
public ServiceFuture < ConnectionSharedKeyInner > setSharedKeyAsync ( String resourceGroupName , String virtualNetworkGatewayConnectionName , ConnectionSharedKeyInner parameters , final ServiceCallback < ConnectionSharedKeyInner > serviceCallback ) { return ServiceFuture . fromResponse ( setSharedKeyWithServiceResponseAsync ( resourceGroupName , virtualNetworkGatewayConnectionName , parameters ) , serviceCallback ) ; }
The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.

@param resourceGroupName The name of the resource group.
@param virtualNetworkGatewayConnectionName The virtual network gateway connection name.
@param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object