public ApiResponse<ApiSuccessResponse> setDNDOnWithHttpInfo(DndOnBody1 dndOnBody) throws ApiException {
        com.squareup.okhttp.Call call = setDNDOnValidateBeforeCall(dndOnBody, null, null);
        Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
public ApiResponse < ApiSuccessResponse > setDNDOnWithHttpInfo ( DndOnBody1 dndOnBody ) throws ApiException { com . squareup . okhttp . Call call = setDNDOnValidateBeforeCall ( dndOnBody , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; }
Set the agent state to Do Not Disturb
Set the current agent&#39;s state to Do Not Disturb on the voice channel.
@param dndOnBody Request parameters. (optional)
@return ApiResponse&lt;ApiSuccessResponse&gt;
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body